☰ Contents · Computing

Library, modules and the math module

Lessons 51–52 · 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 prints a random whole number from 10 to 20 (20 included) using the random module.
2
Find the area of a circle of radius 3 with round(math.pi * r ** 2, 2).
3
What is math.factorial(6) equal to?
4
Why may sin 30° printed without round() show 0.49999… and not 0.5?