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

Product of a list

Write a Python function to multiply all the numbers in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →

Sum of a list

Write a Python function to add up the numbers in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Maximum of three numbers

Write a Python function to find the maximum of three numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiplication table function

Write a Python function that prints the multiplication table of a number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Print a string 10 times

Write a Python function that prints a string 10 times. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Function to add two numbers

Write a Python function that adds two numbers and returns the result. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Last element with negative indexing

Write a Python program to get the last element of a tuple with negative indexing. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is the value a tuple?

Write a Python program that returns True if a value is a tuple. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Swap two tuples

Write a Python program to swap two tuple variables. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Average of a tuple

Write a Python program to calculate the average of a tuple's elements. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Binary tuple to an integer

Write a Python program to convert a tuple of binary digits into an integer. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count unique tuples

Write a Python program to count the distinct tuples in a list. 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.