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

Integers 1 to 100 in steps of 6

Write a NumPy program to create an array of integers from 1 to 100 with a difference of 6. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Odd integers from 1 to 20

Write a NumPy program to create an array of odd integers from 1 to 20. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Even integers from 1 to 20

Write a NumPy program to create an array of even integers from 1 to 20. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Integers from 1 to 20

Write a NumPy program to create an array of integers from 1 to 20. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Array of three ones

Write a NumPy program to create an array of 3 ones. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Memory used by an array

Write a NumPy program to find the memory occupied by an array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Create an array from values

Write a NumPy program to create an array with the values 10, 34, 86, 26, 56. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise less than

Write a NumPy program for an element-wise "less than" comparison. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise greater or equal

Write a NumPy program for an element-wise "greater or equal" comparison. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element-wise greater than

Write a NumPy program for an element-wise "greater than" comparison. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Are two arrays element-wise equal?

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

1 min readRead →
Python practice

Is a value a scalar?

Write a NumPy program to test whether a value is a scalar. 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.