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

Latest articles

1,677 articles · page 110 of 140
Python practice

Is the water boiling?

Write a Python program that reads a temperature in Fahrenheit and says whether water is boiling (212 °F or...

1 min readRead →
Python practice

Smallest of three numbers

Write a Python program to find the smallest of three numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Senior citizen check

Write a Python program to check whether a person is a senior citizen (age greater than 60). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Monuments of a city

Write a Python program that accepts a city name (Pune or Mumbai) and displays its monuments. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Day name from a number

Write a Python program that reads a number from 1 to 7 and prints the day (1 = Sunday, 2 = Monday, ... 7 =...

1 min readRead →
Python practice

Road tax by car price

Write a Python program to display road tax: price below 5,00,000 pays 15,000; below 10,00,000 pays 50,000; below 15,00,000 pays...

1 min readRead →
Python practice

Print 1 for Hello and 0 for Bye

Write a Python program that prints 1 if the user enters Hello and 0 if the user enters Bye. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is the last digit divisible by 4?

Write a Python program to check whether the last digit of a number is divisible by 4. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Exam attendance eligibility

EasyIf-Else Programs · 54 of 64Write a Python program that allows a student into the exam only if attendance is at least 75%.Inputattended 52 of 65…

1 min readRead →
Python practice

Absolute value

Write a Python program to print the absolute value of a number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
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 →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.