EBook with open and close
Create `EBook` (inherits `Book`) with file_size and format, and methods to open and close the book. 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 `EBook` (inherits `Book`) with file_size and format, and methods to open and close the book. Step-by-step explanation, colour-coded code and real output.
Create `Book` with title, author and pages, with getter methods. Step-by-step explanation, colour-coded code and real output.
Create `Laptop` with brand, model and storage, with methods to start up, shut down and check...
Create `Phone` with brand, model and storage, with methods to call, text and check storage. Step-by-step explanation, colour-coded code and real output.
Create `VIPCustomer` (inherits `Customer`) with credit_limit and discount_rate, and a method for available...
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...
Take free timed mock tests with answers and explanations.