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

Remove duplicate dictionaries

Write a Python program to remove duplicate dictionaries from a list, keeping the first of each. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a list sorted?

Write a Python program to check whether a list is sorted in ascending order. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Elements at several indexes

Write a Python program to get the elements at a list of indexes. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count integers in a mixed list

Write a Python program to count the integers in a mixed list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Average of a list

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

1 min readRead →
Python practice

Differences between neighbours

Write a Python program to find the difference between consecutive numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Strings of a given length

Write a Python program to extract the strings of a given length. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort sublists by their sum

Write a Python program to sort a list of sublists by the sum of each sublist. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Max and min of a mixed list

Write a Python program to find the maximum and minimum numbers in a list that also contains...

1 min readRead →
Python practice

Zip two lists of lists

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

1 min readRead →
Python practice

3 × 3 grid

Write a Python program to create a 3 × 3 grid where every row is [4, 5, 6]. 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.