What is wrong with my code


#1

pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

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

i hope that will help you


#3

Methods need parenthesis around them like this:


word = original.lower()

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


#4

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