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

Prime numbers in a list

Write a Python program to get the prime numbers from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count vowels in a list of words

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

1 min readRead →
Python practice

Palindrome numbers in a list

Write a Python program to get the palindrome numbers from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
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 →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.