Solution: Printing a Half Diamond
Go over the implementation of printing the half diamond shape.
We'll cover the following...
Courtney’s version
Press + to interact
count = 08.times docount += 1 # this is equivalent to count = count + 1hashes = "#" * countputs hashesendcount = 88.times docount -= 1hashes = "#" * countputs hashesend
Explanation
Courtney’s version code loops 16 times, (two loops of 8 iterations each) , but prints out 15 lines of the half diamond. This is because in ...