☰ Contents · Computing

Arithmetic practice and strings

Lessons 28–29 · 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
If s = "BUXORO", find s[1:4].
2
Write one line of code that prints a line made of 20 dashes (-).
3
Find the sum of the digits of the three-digit number 859 using // and %.
4
How many hours, minutes and seconds is 3725 seconds? Write the answer.
5
Why is len("ab cd") equal to 5 and not 4?