Skip to content

Commit 6bce6ca

Browse files
author
Karan Goel
committed
String reverse done
1 parent a5db3a4 commit 6bce6ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Text/reverse.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- coding: cp1252 -*-
2+
"""
3+
Reverse a String – Enter a string and the program
4+
will reverse it and print it out.
5+
"""
6+
7+
string = raw_input("Whatchu wanna say to me? ")
8+
print "You say %s, I say %s" % (string, string[::-1])

0 commit comments

Comments
 (0)