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

List to a set

Write a Python program to convert a list to a set. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Are two sets disjoint?

Write a Python program to check whether two sets have no items in common. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is one set a subset of another?

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

1 min readRead →
Python practice

Symmetric difference

Write a Python program to find the items in exactly one of two sets. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Difference of two sets

Write a Python program to find the items in the first set but not the second. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Intersection of two sets

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

1 min readRead →
Python practice

Union of two sets

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

1 min readRead →
Python practice

Is an element in a set?

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

1 min readRead →
Python practice

Length of a set

Write a Python program to find the number of items in a set. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove an element from a set

Write a Python program to remove an element from a set. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add elements to a set

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

1 min readRead →
Python practice

Create a set

Write a Python program to create a set and show that duplicates are removed. 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.