Programming Assignment Unit 2
Programming Assignment Unit 2
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 new_line():
print('.')
def three_lines():
new_line()
new_line()
new_line()
nine_lines()
clear_screen()
print('The END....')
"C:\Users\OnePlug Tech\PycharmProjects\tryme4.py\tryme4.py"
Printing 9 Lines
.
.
.
.
.
.
.
.
.
Printing 25 Lines
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The END....
● Does the assignment produce the appropriate output when executed? The output
should be recorded in a text file, a Microsoft Word document, or an RTF-
formatted document by copying the output from the Python script into the
document. The successful script will print out 9 "." lines first and then 25 "." lines.