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

Element-wise real test

Write a NumPy program to test element-wise for real numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise complex test

Write a NumPy program to test element-wise for complex numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise NaN test

Write a NumPy program to test element-wise for NaN. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise finite test

Write a NumPy program to test element-wise whether values are finite. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Test that no element is zero

Write a NumPy program to test whether none of the elements of an array is zero. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Get the NumPy version

Write a Python program to get the installed NumPy version. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Split a dictionary into chunks

Write a Python program to split a dictionary into dictionaries of n items. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort by the sum of list values

Write a Python program to map each key to the sum of its list and sort by that sum. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of unique values across lists

Write a Python program to add up the distinct numbers found in all list values. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse values and decorate keys

Write a Python program to reverse each string value and put underscores around each key. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Invert a dictionary with repeated values

Write a Python program to invert a dictionary whose values repeat, collecting keys in lists. 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.