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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started