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?
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers