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

Python practice articles

1,137 articles · page 31 of 95 · Clear filters
Python practice

Even numbers from a list

Write a Python function that returns the even numbers of a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Prime check function

Write a Python function that returns True if a number is prime. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Unique elements in order

Write a Python function that returns a new list with the unique elements of a list, in order. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a number in a range?

Write a Python function to check whether a number is within a range (inclusive). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse a string

Write a Python function to reverse a string. Step-by-step explanation, colour-coded code and real output.

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

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.