Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 545eca6

Browse files
committedMay 3, 2023
closes #184
1 parent a069fc6 commit 545eca6

File tree

1 file changed

+3
-2
lines changed
  • Variables/Undefined variable

1 file changed

+3
-2
lines changed
 

‎Variables/Undefined variable/task.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ Variable names may only contain Latin letters, digits, and/or the underscore
44
character, and they cannot start with a digit. They also cannot be any of the
55
reserved <a href="https://docs.python.org/3/reference/lexical_analysis.html#keywords">keywords</a>.
66
### Task
7-
Check what happens if you use a variable which is not defined yet. Run the code in the editor – try to print out an undefined name.
7+
Check what happens if you use a variable which is not defined yet. Change and run the code in the editor – try to print out an undefined name.
8+
This should cause an exception - a `NameError`.
89

9-
Note, that "check" command only runs the testing system, and you will not see the output.
10+
Note, that "check" command only runs the testing system, and you will not see the output, so you need to run the file.
1011

1112
<div class="hint">Type the name of an undefined variable inside the brackets of the <code>print</code> statement.
1213
Note that variable names must start with a letter and can contain only letters, '_', and numbers.</div>

0 commit comments

Comments
 (0)
Please sign in to comment.