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 153 of 159
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 →
Python practice

Pick random numbers from a list

Write a Python program to select 4 random numbers from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Insert an item at an index

Write a Python program to insert an item at a specific position. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Split a list at a given length

Write a Python program to split a list into two parts where the first part has a given length. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Pack consecutive duplicates

Write a Python program to pack consecutive duplicates into sublists. 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.