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

Allot a stream from marks

Write a Python program that allots a stream: marks above 85 Science, above 70 Commerce, 35 to 70 Arts, below 35...

1 min readRead →
Python practice

Calculator with an operator

Write a Python program that accepts two numbers and an operator (+, -, *, /) and prints the result. Step-by-step explanation, colour-coded code and real output.

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

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.