
S ort a given data in ascending order USING NESTED LOOP: a=eval(input("a:")) for i in range(len(a)): for j in range(len(a)-i-1): if a[j]>a[j+1]: a[j],a[j+1]=a[j+1],a[j] print(a) OUTPUT:
Hey guys! I am a student and interested in python so I want you to help in programming. I post simple codes that will help u in school as well as in your college projects.