Answer to Question #270268 in Python for Slim

Question #270268

Write a function in this file called nine_lines that uses the function three_lines to print a total of nine lines


1
Expert's answer
2021-11-23T05:18:40-0500
#this def is called to print a free space 
def new_line():
    print('')
#this is called to print new three lines
def three_lines():
    new_line()
    new_line()
    new_line()
#called to have a three lines 
def nine_lines():
    three_lines()
    three_lines()
    three_lines()

def clear_screen():
    nine_lines()
    three_lines()
    new_line()
#below printing all need def line said above
print('.')
new_line()
print('.')
three_lines()
print('.')
nine_lines()
print('.')
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