Emoji Staircase ๐ช
Build a staircase out of emoji, five steps tall:
๐
๐๐
๐๐๐
๐๐๐๐
๐๐๐๐๐
Two ingredients you already know:
print("๐" * 3) # โ ๐๐๐ (repeat a string)
for i in range(1, 6):
print(i) # โ 1 2 3 4 5 (each on its own line)
Look at those two side by side. On loop number 1 you want 1 emoji, on loop number 3 you want 3... ๐ค
Your mission
Print a 5-step staircase using a loop. Any emoji or symbol you like โ
no typing five separate print() lines!
Your code
Press โถ Run to see what your code does!