☰ Contents · Computing

Variables and errors

Lessons 22–23 · 2 lessons · M. R. Fayziyeva, D. M. Sayfurov, N. S. Xaytullayeva. Informatics and Information Technologies, Grade 9. “Nashriyot uyi Tasvir”, Tashkent, 2020
Answers are for parents and teachers.
1
Write names for two variables that keep your age and your grade (following the naming rules).
2
After a = 2, b = 5, a = b, b = 1 are carried out, what are a and b?
3
Fix the code: print("Hayr)
4
Choose one of three error types (SyntaxError, NameError, IndentationError) and write a short code that causes it.
5
Why can “my-age” not be a name?