Example & Tutorial understanding programming in easy ways.

How we can reverse the string in Python in one line ?

Program:

s="Mystring123"

print(s[::-1])


Output:

321gnirtsyM

Read More →