In this program, we will take a string as input and print the mirror image of string.
Steps to solve the program
- Take a string as input.
- Print the mirror image of the string by reversing it.
- Use Indexing for this purpose.
#Input string
string = "Python"
#Printing output
print(string[::-1])
Output :
'nohtyP'