Example & Tutorial understanding programming in easy ways.

How we can sort the list in Python ?

program:

l=[2,4,1,3]

print(l)

l.sort()

print(l)

output:

[2,4,1,3]

[1,2,3,4]

Read More →