Answer to Question #236869 in Python for Joel

Question #236869

Using IDLE development you must use script mode to develop your script . Your script must use meaningful variable names and have comments that describe what is happening in your script . Comments may describe the assignment of value to a variable , a computation and the assignment of the result to a variable , or the display of the result . Write a function in this file called nine_lines that uses the function three_lines to print a total of nine lines . Now add a function named clear_screen that uses a computation of functions nine_lines ,three_lines ,and new_lines to print a total of twenty- five lines . The last lines of your program should call first nine_lines and then the clear_screen function.


1
Expert's answer
2021-09-14T06:34:39-0400
def three_lines():
    for i in range(3):
        print("line")




def nine_lines():
    for i in range(3):
        three_lines()
        
def clear_screen():
    three_lines()
    nine_lines()


nine_lines()
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

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS