Python Programming
Saturday, January 17, 2015
Reversing a String
The simple program below demonstrates reversing a user inputted string.
Basic outline:
User inputs a string
An empty reverse string variable is created
A while loop is utilized to create the reverse string by starting at the end of the user inputted string, using indexing.
The reverse message is printed.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment