5. Check Yourself... Some More
This is my code so far:
print 'Welcome to the Pig Latin Translator!' raw_input("Enter a word:") original = "raw_input(Enter a word:)" if len(original)>0 and original.isalpha(): print "original" elif len(original)<=0 and original.isalpha() is False: print "Please try again using only letters and not numbers or special characters!" else: print "Please type something in!"
So basically, I've been trying to test all 3 conditionals to check whether the code works out properly. I've searched these forums in the hopes of an answer but I can't really find one.The issue with this code is that, despite typing in "Hello", it skips straight to the else conditional. There isn't an error message that pops up, the code just doesn't do what I want it to do.
I expected it to follow the print "original" command as I typed in "Hello".