Python Programming
Showing posts with label
slicing string
.
Show all posts
Showing posts with label
slicing string
.
Show all posts
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.
Older Posts
Home
Subscribe to:
Posts (Atom)