String practice and input and output methods
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).
print("H", "E", "L", "L", "O", sep="\n")
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.
print(" " * 2 + "*") ⏎ print(" " * 1 + "*" * 2) ⏎ print("*" * 3)
3
3;4 is typed (with a semicolon). Write a program that prints the sum.
a = input().split(";") ⏎ print(int(a[0]) + int(a[1]))
4
Write the result of print("A", "B", sep="", end="!").
AB!