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 1f79917

Browse files
committedDec 19, 2023
Add Task headers
1 parent b2dde8f commit 1f79917

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎Variables/Assignments/task.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ assignment statement, such as `+=`, `-=`, etc.
55

66
An augmented assignment expression like `x += 1` can be rewritten as `x = x + 1` to achieve a similar effect.
77
You can read more about this <a href="https://docs.python.org/3/reference/simple_stmts.html#augmented-assignment-statements">here</a>.
8+
89
### Task
910
Use an augmented assignment to add `5` to `number` and update the variable.
1011

‎Variables/Undefined variable/task.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
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>.
6+
67
### Task
78
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 (i.e. type the name of an undefined variable inside the brackets of the `print` statement).
89
This should cause an exception - a `NameError`.

0 commit comments

Comments
 (0)
Please sign in to comment.