Course with students
Create `Course` with name, teacher and students, with methods to add and remove students and print the...
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
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.
Create a `Student` class that inherits from `Person`, adds student_id and grades, and prints name, age and...
Create a `Person` class with name and age and a method to print them. Step-by-step explanation, colour-coded code and real output.
Create a `Circle` class with a radius and methods for area and circumference. Step-by-step explanation, colour-coded code and real output.
Write a Python class to calculate the area of a rectangle. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.