☰ Contents · Computing

Local and global variables, the GCD (EKUB) function

Lessons 49–50 · 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
What does this program print? (A global variable is read.) x = 10 ⏎ def f(): ⏎     print(x) ⏎ f()
2
Find the EKUB(56, 42).
3
Reduce the fraction 12/30: write the numerator and denominator.
4
a and b are typed. Write a program that prints the EKUK (12 for 4 and 6).