I keep on getting this error message that says "It looks like first is "w" instead of "h" can someone please help me? I have been stuck on this one for almost three days. I'll include a screenshot.
A little bit of 'cart before the horse' going on here. After receiving user input it should be tested before being given to word. Move that line up a couple of lines and see what results.
As you use the code-line
first = 'word'
you are collecting the =first= character of the string 'word'
instead of collecting the firt character of the associated Value of the variable word
first = word
I removed the ' ' from word and I am now getting "Did you create a variable called first?"
Which line are you exactly talking about?
pyg = 'ay'
original = raw_input('Enter a word:')
word = original.lower()
first = word
if len(original) > 0 and original.isalpha():
pyg = 'ay' original = raw_input('Enter a word:') #first test the input if len(original) > 0 and original.isalpha(): word = original.lower() first = word print original.lower() else: print 'empty'
Why are you printing
Alright I am pretty sure I got it thank you for the help guys
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.