Title | Tryme 4Code - Lecture notes 4 |
---|---|
Author | yusuf muatawakil |
Course | Programming Fundamentals |
Institution | University of the People |
Pages | 3 |
File Size | 57.5 KB |
File Type | |
Total Downloads | 36 |
Total Views | 122 |
CS 1101...
CODE
# Prints nine lines def nine_lines(): three_lines() three_lines() three_lines()
# Prints a dot def new_line():
print('.')
# Print Three line def three_lines():
new_line()
new_line()
new_line()
# Prints 25 line def clear_screen(): nine_lines() nine_lines() three_lines() three_lines()
new_line()
nine_lines() clear_screen()
OUTPUT . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . .
EXPLANATION The assignment implements new_line, three_lines, nine_lines, and clear_screen functions. And the assignment is also demonstrate the use of nested function calls. In addition, the output is appropriate when executed. There are comments explaining the functionality of each functions....