Beginner
Python• OOP
Bank Account System
Create a BankAccount class with attributes like account_number, holder_name, and balance.
Add methods deposit(amount) and withdraw(amount) (prevent negative balance). Create two account objects and perform transactions.
OOP Focus: Class, objects, attributes, methods, and basic encapsulation.
Note: This is statement-only in the current Practice version; stdout should be empty.
Sample Test Verification
1 Test CaseStatement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Pyodide v0.26.4 WASM
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)