String reverse done
+8 · 1 file changed
-
Text/reverse.py+8 −0
@@ -0,0 +1,8 @@ +# -*- coding: cp1252 -*- +""" +Reverse a String Enter a string and the program +will reverse it and print it out. +""" + +string = raw_input("Whatchu wanna say to me? ") +print "You say %s, I say %s" % (string, string[::-1])