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

Convert decimal to binary

Write a Python program to convert a decimal number to binary. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Get the current date and time

Write a Python program to get the current date (and time). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Random string of a given length

Write a Python program to generate a random string of a specific length. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Generate random numbers

Write a Python program to generate random numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check for an anagram

Write a Python program to check whether two words are anagrams: one is a rearrangement of all the letters of the...

2 min readRead →
Python practice

Check a leap year

Write a Python program to check whether a year is a leap year: divisible by 4, except century years, which must be divisible by...

1 min readRead →
Python practice

Check a prime number

Write a Python program to check whether a number is prime (greater than 1 and divisible only by 1 and...

2 min readRead →
Python practice

Compound interest

Write a Python program to calculate compound interest. Amount = P × (1 + R/100)ᵀ and interest = amount −...

1 min readRead →
Python practice

Check a palindrome number

Write a Python program to check whether a number is a palindrome (reads the same backwards, like...

1 min readRead →
Python practice

Fibonacci series up to 50

Write a Python program to print the Fibonacci series between 0 and 50. Each number is the sum of the two before...

1 min readRead →
Python practice

Reverse a number

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

1 min readRead →
Python practice

Factorial of a number

Write a Python program to find the factorial of a number. n! = 1 × 2 × ... × n, and 0! = 1. Step-by-step explanation, colour-coded code…

1 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.