Answer to Question #271329 in Python for kika

Question #271329

Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine line


1
Expert's answer
2021-11-25T18:04:57-0500
#function to create new line
def new_line():
  print('')
  #calling new_line funcction three times
def three_lines():
  new_line()
  new_line()
  new_line()
  #creating nine lines
def nine_lines():
  three_lines()
  three_lines()
  three_lines()
#clearing the screen
def clear_screen():
  nine_lines()
  three_lines()
  new_line()
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