Answer to Question #91388 in Python for glad

Question #91388
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 the function clear_screen.

The function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line:

def new_line():

print('.')

def three_lines():

new_line()

new_line()

new_line()
1
Expert's answer
2019-07-04T05:20:59-0400

def nine_lines():

three_lines()

three_lines()

three_lines()


def clear_screen():

nine_lines()

nine_lines()

three_lines()

three_lines()

new_line()


clear_screen()


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Kelly
20.04.22, 08:30

You have no idea guys it was last minute, my time was almost up to submit my assignment and since am new to python, was hard to get the problem solved. Thanks a lot, you are heavenly sent

Givemore Matengambiri
13.05.21, 00:00

Guyz you have saved me a lot, am thinking about paying you a little.

Godsgreat seth
10.02.21, 16:36

I love the site very well .Thank you welll

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS