Coming up 'empty'


#1

mine is coming out with empty? if that supposed to be that way?

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’

OUTPUT:
Enter a word: HELLO
empty


8/11 badly stuck
#2

Check that your indentation is not the root cause of the problem Be sure to use spaces and not tabs.


#3

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