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,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 138 of 159
Python practice

Count odd numbers 1 to 100

Write a Python program to count the odd numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count even numbers 1 to 100

Write a Python program to count the even numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiplication table

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

1 min readRead →
Python practice

Fibonacci series of n terms

Write a Python program to print the first n terms of the Fibonacci series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Perfect numbers from 1 to n

Write a Python program to print all perfect numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Perfect number check

Write a Python program to check whether a number is perfect: the sum of its factors (excluding itself) equals the number, like 28 = 1 + 2 +…

1 min readRead →
Python practice

Armstrong numbers from 1 to n

Write a Python program to print all Armstrong numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Prime factors

Write a Python program to find all prime factors of a number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of primes from 1 to n

Write a Python program to find the sum of all prime numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Primes from 1 to n

Write a Python program to print all prime numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Prime check with a loop

Write a Python program to check whether a number is prime using a loop. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Factorial with a loop

Write a Python program to calculate the factorial of a number using a loop. 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.