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

Median of a matrix

Write a NumPy program to find the median of all values in a matrix. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count non-zero elements

Write a NumPy program to count the non-zero elements. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Split into 2, 3 and 5 elements

Write a NumPy program to split 10 elements into arrays of 2, 3 and 5 elements. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

1-D arrays as columns

Write a NumPy program to combine two 1-D arrays as columns of a 2-D array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove single-dimensional entries

Write a NumPy program to remove dimensions of size 1 from a shape. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

The ith element of a 2-D array

Write a NumPy program to find the ith element (counting row by row) of a 2-D array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Change the data type

Write a NumPy program to change the data type of an array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of the minimum

Write a NumPy program to find the index of the minimum value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of the maximum

Write a NumPy program to find the index of the maximum value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Union of two arrays

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

1 min readRead →
Python practice

Set difference

Write a NumPy program to find the unique values of array1 that are not in array2. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Unique elements

Write a NumPy program to get the unique elements of an array. 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.