For Loops are great for making a limited number of loops as they will save you some lines of code.
Check out the program below, try to predict what the output will be and then type it up and try it.
There are 4 examples of For Loops listed.
Note that \n causes a return space when you are printing!
Example 1 : for i in range (10):
Example 2 : for i in range (10,0,-1):
Example 3 : for i in range (0, 10, 2):
Example 4 : for i in range (10):
NOTE: The variable you use to count can be any legal variable name. It does not have to be i.
Assignment #7 :
Create a program that gives the EXACT output as shown below.
The program can ONLY use for loops for counting!
BONUS: the program, including your name in comments, is 4 lines!