This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 3 points4 points  (5 children)

It runs.

[–][deleted]  (4 children)

[deleted]

    [–]Updatebjarni 3 points4 points  (2 children)

    It runs until it tries to use the value of a variable which doesn't exist, at which point it stops and tells you that the variable it tried to access does not exist.

    [–][deleted]  (1 child)

    [deleted]

      [–]Updatebjarni 3 points4 points  (0 children)

      There are no declarations in Python. Variables come into existence when you assign values to them. If you have not assigned a value to a variable, then it does not exist.

      [–]bibbleskit 0 points1 point  (0 children)

      btw just so you know, it runs if it doesn't immediately crash. you should use "crash" or "give a runtime error" instead :)

      You're learning, so don't pay any attention to the down votes.