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

Reverse every number in a list

Write a Python program to reverse the digits of every number in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Fibonacci numbers from 1 to 20

Write a Python program to get the Fibonacci numbers between 1 and 20. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Factorial of each item

Write a Python program to get the factorial of each item in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove duplicate strings

Write a Python program to remove duplicate strings from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Insert an element before each item

Write a Python program to insert an element before each element of a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove duplicate tuples

Write a Python program to remove duplicate tuples from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Every other item

Write a Python program to create a list from every second item. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Keep sublists that are not repeated

Write a Python program to keep only the sublists that appear once. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Are all elements unique?

Write a Python program to check whether all elements of a list are unique. 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 →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.