This commit is contained in:
danielvici123
2025-02-06 11:03:06 +01:00
parent 5e0f0c31ef
commit 705137697d
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
arr_test = [4,5,9,1,3]
for i in range(len(arr_test)):
if arr_test[i] > arr_test[i + 1]:
temp = arr_test[i]
arr_test[i] = arr_test[i + 1]
arr_test[i + 1] = temp
print(arr_test)