Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.
Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.
def nine_lines():
three_lines()
three_lines()
three_lines()
def clear_screen():
nine_lines()
nine_lines()
three_lines()
three_lines()
new_line()
Comments
Leave a comment