Monty_python with error


i typed:

monty = true
python = 1.234
monty_python = python ** 2

and it says itss wrong, why?


Not sure which lesson you are on. Please post a link to the exercise.



Traceback (most recent call last):
File "python", line 2, in
NameError: name 'true' is not defined

monty = True

Single line comments only need to start with a hash. We don't need one at the other end.

# this is a Python line comment


i errased the last "# ", yet the problem persists.
Says there is an error when defining "monty"


Your code passes for me:

monty = True
python = 1.234
monty_python = python ** 2


strange...... yet, still signs as an error.
can it be that there is a problem with the indenting??


There is no indenting needed since there are no functions or control flow structures. I really don't understand why it is not working. Did you paste in the solution that passed for me? Did you try to refresh the lesson page and submit again?


I have the same problem, this is my code:

Hello world


Please, help!


Hi you wrote phyton instead of python


when writing "monty = True" make sure "True" goes with CAPITAL "T"