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,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 158 of 159
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 →
Python practice

Python Tuple Programs with Solutions

70 Python tuple programs with solutions: create, index, unpack, sort lists of tuples, convert to list, dict and string, and more, each explained.

7 min readRead →
Python practice

Python File Handling Programs with Solutions

38 Python file handling programs with solutions: read, write, append, count words and lines, copy, compare, seek and tell, each explained step by step.

4 min readRead →
Python practice

Python If-Else Programs with Solutions

64 Python if-else practice programs with solutions: grades, leap year, vowels, triangles, discounts, bills and more, each explained line by line.

8 min readRead →
Python practice

Python Basic Programs with Solutions

40 Python basic programs for beginners with solutions: arithmetic, formulas, area, interest, factorial, prime, palindrome and more, each explained.

5 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.