Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 404 Bytes

exercise1.md

File metadata and controls

7 lines (6 loc) · 404 Bytes

Python Code Structure Exercise 1

  1. Write a program with three functions (func1, func2, func3).
  2. Use the if __name__ technique to separate the importable code from the executable code.
  3. Create a main() function and call it.
  4. Execute the program from the command line. Verify main() function executes.
  5. Go into the Python shell and import the module. Verify main() function does NOT execute.