Check Yourself...Some More Trouble!


Replace this line with your code.


pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    print original
    print 'empty'
word = original.lower()
first = word(0)


can anyone lease tell me what is wrong with my code and how to fix it? That would be wonderful thanks!


exercise 5? You seemed to have added more code then needed, which is causing problems. Remove the else statement and everything after the else statement


Ok thanks so much! Is that all I need to fix?


Well it seems you are already further, so you figured it out. Be aware, the forum is for if you are properly stuck (not just 5 minutes) and read other topics. Thank you for your understanding :slight_smile: