☰ Contents · Computing

String practice and input and output methods

Lessons 30–31 · 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 single print() that shows the word "HELLO" with each letter on its own line (using sep).
2
Print a 3-row staircase of stars aligned to the right: on top 2 spaces and 1 star, in the middle 1 space and 2 stars, at the bottom 3 stars.
3
3;4 is typed (with a semicolon). Write a program that prints the sum.
4
Write the result of print("A", "B", sep="", end="!").