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 119 of 140
Python practice

Letter T pattern

Write a Python program to print the letter 'T' with stars: two full rows of 9 stars and a 3-star stem in the...

1 min readRead →
Python practice

Keep only the digits of the input

Write a Python program that reads text and adds each digit to an empty list as a number. Step-by-step explanation, colour-coded code and real output.

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

Armstrong number with a loop

Write a Python program to check whether a number is an Armstrong number (153 = 1³ + 5³ + 3³) using a...

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 →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.