subject

Write a function 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()
Does the assignment implement new_line, three_lines, nine_lines, and clear_screen functions, as well as a main section of the program which calls the functions? Does the assignment demonstrate the use of nested function calls?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
You know the right answer?
Write a function called nine_lines that uses the function three_lines (provided below) to print a to...
Questions
question
Biology, 17.02.2021 18:00
question
Mathematics, 17.02.2021 18:00
question
Computers and Technology, 17.02.2021 18:00
question
Mathematics, 17.02.2021 18:00
Questions on the website: 13722363