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

Common elements of two arrays

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

1 min readRead →
Python practice

Real and imaginary parts

Write a NumPy program to find the real and imaginary parts of complex numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add one row to another

Write a NumPy program to add row 2 to row 1. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiply a row by a scalar

Write a NumPy program to multiply row 1 of an array by 2. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse the row order

Write a NumPy program to swap the rows of an array (first and last). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Replace numbers at or above a value

Write a NumPy program to replace numbers greater than or equal to 8 with 0. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Numbers greater than a value

Write a NumPy program to extract numbers greater than 6. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort rows by the first column

Write a NumPy program to sort the rows of an array by the first column. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort each row

Write a NumPy program to sort each row in ascending order. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Transpose a matrix

Write a NumPy program to swap the rows and columns of a matrix. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

One-dimensional array

Write a NumPy program to create a one-dimensional array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise equality

Write a NumPy program to check whether two arrays are equal element-wise. 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.