Activity 01
Pair Programming: Bank Account Class
Pairs define a BankAccount class with attributes like balance and owner, plus methods for deposit and withdraw. They create two objects, simulate transactions, and test edge cases like overdrafts. Pairs then swap code to identify and fix bugs.
Construct a class definition with appropriate attributes and methods.
Facilitation TipDuring Pair Programming: Bank Account Class, have partners alternate roles every 10 minutes so both students observe how two separate accounts maintain unique balances despite identical class code.
What to look forProvide students with a simple class definition (e.g., a 'Dog' class with 'name' and 'breed' attributes). Ask them to write the Python code to create two different 'Dog' objects, each with unique names and breeds, and then print one attribute from each object.