Word up


#1

I had the same problem.

The only change I made was the indent shown below.

Why is this important?


Word Up
Word Up
#2

where many languages use curly brackets to determine if something nested in the if clause, python uses indention (spacing), that is why its important, otherwise python doesn't know what belongs to the if clause


#3

On line 7, press "Enter" so you can add one more line of code. In this line of code, paste:

first # "w"

#4

Hmm... What should the outcome be?


#5

Do so and you will see ^^


#6

Of course I'll do. This is what it tells me?


#7

Wow! Now it's mine that's making a mistake '-' Since I've already done this lesson, I'm building blocks!
I'm sorry, but when I did this lesson, I did it that way and it worked.


#8

I'm new in this, so I still need to understand the basics. I appreciate the help!


#9

line 7,8 and 9 should have the same indent level as line 6, its part of the the same if clause

ignore @kimogordinho idea, its not relevant


#11

Don't you mean 6, 7 and 8?


#12

sorry, i mean 6, 7, 8 and 9 should all have the same indent level (4 spaces is common)


#13


#15


#16

my mistake, you where right. its line 6, 7 and 8, line 9 shouldn't have indent, i got thrown of by that horrible suggestion of kimogordinho, my mistake.

Does it work now? If not, what error do you get?


#17

Thank you anyway! It helps to try some different things in my quest for understanding.


#18


Imgur

#19

It works now! Perfectly. Thanks.


#20

I got no clue, why it works for you and not for me?


#21

Not that for you it did not work and for me it worked. It's in the instruction, at least in my state.

Ps: This moderator has a crush on me ... I ■■■■ and walked to you with success!


#22

its simply, you need to enter something valid when prompted, otherwise word variable is not created, it has nothing to do with first#w