Question: Assignment Printing Nine and Twenty Five Lines submitted on Wednesday, 13 February 2019, 9:52 PM import os def new_line(): print('.' * 10) def three_lines(): new_line()

Assignment Printing Nine and Twenty Five Lines

submitted on Wednesday, 13 February 2019, 9:52 PM

import os def new_line(): print('.' * 10) def three_lines(): new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() def twenty_five_lines(): new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() new_line() def nine_lines(): three_lines() print('Printed nine lines') os.system('cls') twenty_five_lines() print('Printed twenty five lines') nine_lines()

Output

.......... .......... .......... .......... .......... .......... .......... .......... .......... Printed nine lines .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... Printed twenty five lines

Question: Does the assignment demonstrate the use of nested function calls?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!