Skip Navigation or Skip to Content

Foundations of Programming (Python) Labs

LAB 06-A: Working with functions

In this LAB, you create a function each for calculating the Sum, Difference, Product and Quotient of two numbers. Use attributes to pass the values into the functions. And use return values.

LAB06_A starter
  1. Create a script called Lab06_A. Add the above code.
  2. Modify the script to make it work with attributes and return values.
  3. Test the script and make sure it works correctly.

Back to self guided, Video only Materials

Back to self guided, Video plus Written Materials

Back to guided, Video plus Written Materials plus Personal Guidance, Feedback, and Support (class setting)