Files
coding-mentor-agent/kb/python-course-kb-practical-python/wiki/exercises/3-1-structuring-a-program-as-a-collection-of-functions.md

1007 B

id, source_exercise_id, title, section, source_path, source_repo, source_commit, student_visible_solution, has_private_solution, skip
id source_exercise_id title section source_path source_repo source_commit student_visible_solution has_private_solution skip
practical-python-3.1 3.1 Structuring a program as a collection of functions 3.1 Scripting 03_Program_organization/01_Script.md https://github.com/dabeaz-course/practical-python 93dca856b41c61a0a0f85ae334116e4c125629ea false false false

Exercise 3.1: Structuring a program as a collection of functions

Source: Practical Python Programming, 03_Program_organization/01_Script.md.

Exercise 3.1: Structuring a program as a collection of functions

Modify your report.py program so that all major operations, including calculations and output, are carried out by a collection of functions. Specifically:

  • Create a function print_report(report) that prints out the report.
  • Change the last part of the program so that it is nothing more than a series of function calls and no other computation.

关联来源