Example & Tutorial understanding programming in easy ways.

How you can reverse the items in the list in Python ?

program:

l=[1,2,3,4]

print(l[::-1])

output:

[4,3,2,1]

Read More →