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

Odd values left, even values right

Write a Python program to rearrange a list so all odd values come first and all even values after them, keeping their...

1 min readRead →
Python practice

Squares of even numbers

Write a Python program to print the squares of all even numbers in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Pairs whose sum is 10

Write a Python program to print every pair of elements from a list whose sum is 10. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove duplicate elements

Write a Python program to remove every duplicate value from a list, keeping the first occurrence of each value in its original...

2 min readRead →
Python practice

Separate even and odd numbers

Write a Python program to separate the even and odd numbers of a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Minimum and maximum

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

1 min readRead →
Python practice

Product of all elements

Write a Python program to find the product of all elements in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of all elements

Write a Python program to calculate the sum of all elements in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Combine two lists

Write a Python program to combine two lists. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Square of each number in a list

Write a Python program to calculate the square of each number in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Python NumPy Programs with Solutions

100 NumPy programs with solutions: arrays, matrices, comparisons, reshape, sort, unique, NaN handling, statistics and rounding, each explained.

9 min readRead →
Python practice

Python Pandas Programs with Solutions

95 pandas programs with solutions: Series, DataFrames, filtering, sorting, groupby, merge, string methods and missing values, each explained.

8 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.