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

Words that contain vowels

Write a Python program to get the words of a string that contain at least one vowel. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a list a palindrome?

Write a Python program to check whether a list reads the same forwards and backwards. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Elements divisible by 3 and 7

Write a Python program to get all elements divisible by both 3 and 7. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove negative values

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

1 min readRead →
Python practice

Remove the 1st, 3rd and 6th elements

Write a Python program to remove the 1st, 3rd and 6th elements of a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Do two lists share a member?

Write a Python program that returns True if two lists have at least one common member. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Copy a list

Write a Python program to copy a list so that changing the copy does not change the original. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

reversed() and reverse()

Write a Python program to reverse a list with `reversed()` and with `reverse()`. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse a list with slicing

Write a Python program to reverse a list using slicing. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse a list with a while loop

Write a Python program to reverse a list using a while loop. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse a list with a for loop

Write a Python program to reverse a list using a for loop. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Common elements of two lists

Write a Python program to get the common elements of two lists, in the order of the first 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.