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 24 of 95 · Clear filters
Python practice

Average of a set

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

1 min readRead →
Python practice

Sum of a set

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

1 min readRead →
Python practice

Minimum element of a set

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

1 min readRead →
Python practice

Maximum element of a set

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

1 min readRead →
Python practice

Set to a list

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

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

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.