SQA Tools Blog

Learn testing and automation, one article at a time

Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.

1,677Articles
1,141Solved Python problems
7Topics
100%Free

Python practice articles

1,137 articles · page 18 of 95 · Clear filters
Python practice

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.

1 min readRead →
Python practice

Manager with bonus

Create `Manager` (inherits `Employee`) with department and bonus, and a method for total...

1 min readRead →
Python practice

Employee class

Create `Employee` with name and salary and a method to print them. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Shape with Square and Triangle

Create a `Shape` class with an area method and subclasses `Square` and `Triangle`. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Course with students

Create `Course` with name, teacher and students, with methods to add and remove students and print the...

2 min readRead →
Python practice

StudentRecord with average grade

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.

1 min readRead →
Python practice

ElectricCar with range

Create `ElectricCar` (inherits `Car`) with battery_size and range_per_charge and a method to calculate the...

2 min readRead →
Python practice

Car class

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.

1 min readRead →
Python practice

CheckingAccount with limit and fee

Create `CheckingAccount` (inherits `BankAccount`) with transaction_limit and transaction_fee; check a withdrawal against the limit and deduct the...

2 min readRead →
Python practice

SavingsAccount with interest

Create `SavingsAccount` (inherits `BankAccount`) with interest_rate and minimum_balance, and a method to calculate...

2 min readRead →
Python practice

BankAccount class

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.

2 min readRead →
Python practice

Cat inherits from Animal

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.

1 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.