☰ Contents · Computing

Review test and arithmetic operations

Lessons 26–27 · 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 a program that swaps the digits of the two-digit number x = 47 to get 74 (using // and %).
2
250 eggs are packed into cartons of 30. How many full cartons are there and how many eggs are left over (using // and %)?
3
Write the expression (x² + 1) / (x - 2) in Python.
4
Evaluate 7 ** 2 - 7 // 2 + 7 % 2.