Skip to content

Commit

Permalink
Merge pull request #269 from AlexHill/patch-2
Browse files Browse the repository at this point in the history
Change some potentially confusing naming
  • Loading branch information
aniav committed Mar 27, 2015
2 parents c09ef30 + a3a7b7a commit 4985ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions en/python_introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ Awesome, right? Of course, variables can be anything, so numbers too! Try this:

But what if we used the wrong name? Can you guess what would happen? Let's try!

>>> name = "Maria"
>>> names
>>> city = "Tokyo"
>>> ctiy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'names' is not defined
NameError: name 'ctiy' is not defined

An error! As you can see, Python has different types of errors and this one is called a **NameError**. Python will give you this error if you try to use a variable that hasn't been defined yet. If you encounter this error later, check your code to see if you've mistyped any names.

Expand Down

0 comments on commit 4985ff4

Please sign in to comment.