What is wrong with my code


pyg = 'ay'

original = raw_input('Enter a word:')

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


word = original.lower() // .lower() this is a method need parentheses ()

i hope that will help you


Methods need parenthesis around them like this:

word = original.lower()

Assuming your indents are correct, then you should be good.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.