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

Common tuples ignoring order

Write a Python program to find the tuples that appear in both lists, treating (3, 9) and (9, 3) as the...

1 min readRead →
Python practice

Order tuples by an external list

Write a Python program to order tuples by the order of their keys in another list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Concatenate or nest two tuples

Write a Python program to concatenate two tuples, and to nest them inside one tuple. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort by each tuple’s minimum

Write a Python program to sort tuples by their minimum value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort by each tuple’s maximum

Write a Python program to sort tuples by their maximum value, largest first. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove nested tuples

Write a Python program to remove nested tuples from a tuple. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Empty set when nothing is symmetrical

Write a Python program that returns an empty set if no tuples in a list are symmetrical. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Symmetrical tuples

Write a Python program to extract the tuples whose reverse is also in the list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List of lists to tuple of tuples

Write a Python program to convert a list of lists into a tuple of tuples. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Insert a string after every element

Write a Python program to convert a tuple into a list with a string after every element. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Flatten tuples into a string

Write a Python program to flatten a list of tuples into a space-separated string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Flatten a list of lists into a tuple

Write a Python program to flatten a list of lists into 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.