My code is below. Try running it if possible to see the problem. But basically, after returning the word as backwards (cc2) it then displays none on a new line. Why? and how do I prevent this in the future?
print "Welcome to the string reverser and palindrome checker. \n The program will prompt you for input when it is required."
raw_input("Press any key to continue...")
def revstr(cc):
xx=0;cc2="";ab=[];xx2=0
while xx<len(cc):
ab[xx:xx]=cc[-xx-1]
xx=xx+1
while xx2<len(ab):
cc2=cc2+ab[xx2]
xx2=xx2+1
print cc2
print revstr(raw_input("Enter string to be reversed"))
raw_input("Press any key to quit"); exit()