Variables and errors
Answers are for parents and teachers.
1
Write names for two variables that keep your age and your grade (following the naming rules).
For example: yosh and sinf.
2
After a = 2, b = 5, a = b, b = 1 are carried out, what are a and b?
a = 5, b = 1
3
Fix the code: print("Hayr)
print("Hayr")
4
Choose one of three error types (SyntaxError, NameError, IndentationError) and write a short code that causes it.
For example: print(son) – NameError, because son has no value.
5
Why can “my-age” not be a name?
The hyphen is read as a minus sign; an underscore is used in names: my_age.