Beginner
Python• OOP
Mobile Phone
Create a Phone class with brand, model, and battery_level.
Methods: make_call(contact), send_message(contact, text), and charge(minutes). Simulate daily usage.
OOP Focus: Multiple methods operating on shared state.
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)