Solution: Printing a Triangle
Go over the implementation of printing the triangle shape.
We'll cover the following...
Courtney’s version
Press + to interact
count = 08.times docount = count + 1hashes = "#" * countputs hashesend
Explanation
Line 1: A variable
count
is created and initialized with the value zero.Line 2: The
do
...