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,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 86 of 159
Python practice

Set elements found in a string

Write a Python program to find which elements of a set appear in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Intersection of several sets

Write a Python program to find the items shared by several sets. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Difference with several sets

Write a Python program to remove from one set the items of several others. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Create a frozenset

Write a Python program to create a frozenset and show that it cannot be changed. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a value a frozenset?

Write a Python program to check whether a value is a frozenset. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Are two sets equal?

Write a Python program to check whether two sets are equal. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a set empty?

Write a Python program to check whether a set is empty. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove several elements

Write a Python program to remove several elements at once. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add several elements

Write a Python program to add several elements at once. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove a specific element safely

Write a Python program to remove a specific element, reporting whether it was there. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Common elements

Write a Python program to find the elements common to two sets of words. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a set a superset?

Write a Python program to check whether a set is a superset of another. 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.