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

Factors of a number

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

1 min readRead →
Python practice

Power using a loop

Write a Python program to calculate base raised to a power using a for loop. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Number in words

Write a Python program that prints each digit of a number as a word. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Frequency of each digit

Write a Python program to find how often each digit appears in an integer. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Palindrome number with a loop

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

1 min readRead →
Python practice

Reverse a number

Write a Python program to read a number and print its reverse. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Product of digits

Write a Python program to calculate the product of the digits of a number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of digits

Write a Python program to calculate the sum of the digits of a number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of the first and last digits

Write a Python program to find the sum of the first and last digits 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.