Example & Tutorial understanding programming in easy ways.

What does [::-1] do?

It reverse the sequence like :


s="name"

a=s[::-1]

print(a)


Output:

eman

Read More →