• Kyser Clark

100 Days of Code - Day 18

Today I spent exactly one hour completing the Object Oriented Programming - Challenge in the Complete Python Bootcamp From Zero to Hero in Python Udemy Course by Jose Portilla.

The challenge:

Create a bank account class that has two attributes:

  • owner

  • balance

and two methods:

  • deposit

  • withdraw

As an added requirement, withdrawals may not exceed the available balance.

Instantiate your class, make several deposits and withdrawals, and test to make sure the account can't be overdrawn.

My code to complete the challenge:

OOP Challenge
Download TXT • 771B

Full Jupyter Notebook:

04-OOP Challenge
Download IPYNB • 8KB

Total Time Dedicated to Python Learning = 52 hours

Image Source: Dice


Related Posts

See All