Определите назначение программы и каких 2 строк в ней не хватает?

a = ['orange', 'apple', 'date','banana', 'lemon']
i = 0
while i < len(a) - 1:
j = 0
while j < len(a) - 1 -i:
if a[j] > a[j+1]:
a[j], a[j+1] = a[j+1], a[j]
j += 1
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.