Python Palindrome Tester ![]() Frankly, I am unimpressed. Python's syntactical quirks like the indentation and colon after control statements make it tricky for newbies. Not to mention the documentation was substandard in terms of content and ease of use. ruby was easier to learn because of the cleaner syntax and more useable library reference. import sys while 1: string = raw_input("Enter the potential palindrome you want to test ('quit' to exit)\n: ") if string == "quit": sys.exit(0) teststring = string.replace(' ', '') revString = "" for i in range(len(teststring)-1 , -1, -1): revString += teststring[i] if revString == teststring: print string + " is a palindrome\n" else: print string + " is NOT a palindrome\npalindrome.py |