8. word up stuck


#1

it keeps telling me i havent made a variable called word.. i have even tried copying some of the other codes from other Q&A´s but it still tells me i have no variable called word.

Please help


#2

after your if condition you should have a colon. (end of line 6) (and then make sure all lines are indented properly)

At line 7, why do you have a colon after "word"[0]? It doesn't belong there.

Also, word is a variable, not a string so don't use quotation marks

If you still experience problems after this, post an updated version of your code


#3

now it looks like this, still the same issue


#4

you still miss the colon after the if condition:

if condition: <- you miss the colon

you still have a colon after conversion to lowercase, there shouldn't be a colon there

If you want to convert something to lowercase, you will have to do:

original.lower()

and store that result of this in word.

Check your indention.


#5

thank you! :D, really gotta remember that the indentions should always be aligned


#6

Did you resolve it? Otherwise post an updated version of your code

You can also save yourself some time by simply copy pasting your code to the forum, and then use markup:


#7

Im having the same problem, its not working for me, it keeps giving me the error message "Did you forget to make a variable called word?" I NEED HELP


#8

please make a new topic with your code + error message, use the template which will help you along


#11

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