Do Now 4.03
Type in your Console
def print_6_stars():
my_string = ''
for i in range(0, 6):
my_string += ' *'
print(my_string)
In your Notebook
- Write down what the output of the function
print_6_starsis. -
Write a function
print_star_squarethat callsprint_6_starsin a loop to produce the following output.>>>python3 print_stars.py * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - Rewrite the function
print_star_squarewithout usingprint_6_stars.- Note that there are two ways to get the above output, so just try doing both!