<filename>Lesson5/sort.py
a = [int(i) for i in input().split()]
print(a)
# for i in range(len(a) - 1):
#     for k in range(len(a) - 1):
#         if a[k] > a[k + 1]:
#             a[k], a[k+1] = a[k+1], a[k]

for i in range(len(a) - 1):
    for k in range(i + 1, len(a)):
        if a[k] < a[i]:
            a[k], a[i] = a[i], a[k]
print(a)
<filename>Lesson5/sort.py
a = [int(i) for i in input().split()]
print(a)
# for i in range(len(a) - 1):
#     for k in range(len(a) - 1):
#         if a[k] > a[k + 1]:
#             a[k], a[k+1] = a[k+1], a[k]

for i in range(len(a) - 1):
    for k in range(i + 1, len(a)):
        if a[k] < a[i]:
            a[k], a[i] = a[i], a[k]
print(a)
# for i in range(len(a) - 1): #     for k in range(len(a) - 1): #         if a[k] > a[k + 1]: #             a[k], a[k+1] = a[k+1], a[k]