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 20 of 95 · Clear filters
Python practice

Abstract method

Write a Python program with an abstract class and an abstract method. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Method overriding

Write a Python program that demonstrates method overriding. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Method overloading

Write a Python program that shows how to achieve method overloading. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Hierarchical inheritance

Write a Python program that demonstrates hierarchical inheritance. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multilevel inheritance

Write a Python program that demonstrates multilevel inheritance. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiple inheritance

Write a Python program that demonstrates multiple inheritance. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Single inheritance

Write a Python program that demonstrates single inheritance. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Class and module name

Write a Python program to get an object's class name and module name. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Class method

Write a Python class with a class method used as an alternative constructor. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Static method

Write a Python class with a static method. 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.