Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 31)
31.
How can you read a string from the console and reverse it?
reverse(input())
str.reverse(input())
input()[::-1]
reverse_string(input())
Answer: Option
Explanation:
To read a string from the console and reverse it in Python, use slicing with [::-1].
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.