Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine line
#function to create new line
def new_line():
print('')
#calling new_line funcction three times
def three_lines():
new_line()
new_line()
new_line()
#creating nine lines
def nine_lines():
three_lines()
three_lines()
three_lines()
#clearing the screen
def clear_screen():
nine_lines()
three_lines()
new_line()
print('.')
new_line()
print('.')
three_lines()
print('.')
nine_lines()
print('.')
clear_screen()
Comments
Leave a comment