Customer with deposit and withdraw
Create `Customer` with name and balance and methods to deposit and withdraw. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Create `Customer` with name and balance and methods to deposit and withdraw. Step-by-step explanation, colour-coded code and real output.
Create `Manager` (inherits `Employee`) with department and bonus, and a method for total...
Create `Employee` with name and salary and a method to print them. Step-by-step explanation, colour-coded code and real output.
Create a `Shape` class with an area method and subclasses `Square` and `Triangle`. Step-by-step explanation, colour-coded code and real output.
Create `Course` with name, teacher and students, with methods to add and remove students and print the...
Create `StudentRecord` with name, age and grades, with methods for the average and a summary. Step-by-step explanation, colour-coded code and real output.
Create `ElectricCar` (inherits `Car`) with battery_size and range_per_charge and a method to calculate the...
Create a `Car` class with make, model and year and a method to print them. Step-by-step explanation, colour-coded code and real output.
Create `CheckingAccount` (inherits `BankAccount`) with transaction_limit and transaction_fee; check a withdrawal against the limit and deduct the...
Create `SavingsAccount` (inherits `BankAccount`) with interest_rate and minimum_balance, and a method to calculate...
Create a `BankAccount` class with account_number and balance, and methods to deposit and withdraw. Step-by-step explanation, colour-coded code and real output.
Create a `Cat` class that inherits from `Animal` (name, colour) and adds breed and weight. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.