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.
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()
Comments
Leave a comment