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

Formula (a + b)² = a² + b² + 2ab

Write a Python program to solve the formula (a + b)² = a² + b² + 2ab and show both sides are equal. Step-by-step explanation, colour-coded code and…

2 min readRead →
Python practice

Pythagoras theorem

Write a Python program to find the hypotenuse of a right-angled triangle using the Pythagoras theorem: a² + b² =...

1 min readRead →
Python practice

Swap two variables

Write a Python program to interchange (swap) the values of two variables. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Square and cube of a number

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

1 min readRead →
Python practice

Median of given numbers

Write a Python program to find the median of given numbers. The median is the middle value after sorting; for an even count it is the average of…

2 min readRead →
Python practice

Average of given numbers

Write a Python program to find the average of given numbers. Average = sum of the numbers / how many numbers there...

1 min readRead →
Python practice

Repeat a string 5 times

Write a Python program to repeat a given string 5 times. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiply two numbers

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

1 min readRead →
Python practice

Subtract two integers

Write a Python program to subtract one integer from another and print the result. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add two integers

Write a Python program to add two integer values and print the result. Step-by-step explanation, colour-coded code and real output.

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

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.