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

Discount on a bill

EasyIf-Else Programs · 52 of 64A shop gives 20% off bills above 2000 and 10% off bills above 1000. Write a Python program to calculate the…

1 min readRead →
Python practice

Is the rectangle a square?

Write a Python program that takes the length and breadth of a rectangle and checks whether it is a...

1 min readRead →
Python practice

Bonus eligibility

EasyIf-Else Programs · 50 of 64Write a Python program that gives a 10% bonus to employees who have served more than 4 years.Input(5 years, salary 60000),…

1 min readRead →
Python practice

Which group of ten a number belongs to

Write a Python program that splits 1-100 into 10 groups (1-10, 11-20, ... 91-100) and finds which group a number belongs to, using nested...

2 min readRead →
Python practice

Roller coaster eligibility

Write a Python program to check whether a person can ride a roller coaster: eligible when age is greater than...

1 min readRead →
Python practice

Check if a value is a dictionary

Write a Python program to check whether a value is a dictionary. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a value is a list

Write a Python program to check whether a value is a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check a boolean value

Write a Python program to check whether a value is of boolean type. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check a complex number

Write a Python program to check whether a value is of complex type. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if two numbers are equal

Write a Python program to check whether two numbers are equal. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a number is the cube of 3

Write a Python program to check whether a number is the cube of 3, and in general whether it is a perfect...

1 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.