WeCodeAcademy

Project: A Bank Account

Classes, errors and formatting together. Try withdrawing too much.

Examplepython
Open in editor »
Quick check

What does `raise ValueError(...)` do?

Your turn: write the code

Finish deposit so it adds to the balance, then print the balance after depositing 50 into an account that starts with 100.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.