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

Join numbers into one number

Write a Python program to convert a list of numbers into a single number. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

At least one common 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

Remove elements at odd indexes

Write a Python program to remove all elements at odd indexes. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if an element exists

Write a Python program to check whether an element exists in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Replace the first and last items

Write a Python program to replace the first and last numbers of a list with "SQA" and "Tools". Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Convert a string to a list

Write a Python program to convert a string into a list of words and a list of characters. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Numbers that appear exactly once

Write a Python program to get the numbers that appear exactly once in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Keys and values from a list of dicts

Write a Python program to get all keys and all values from a list of single-item dictionaries. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Pair up two lists as sublists

Write a Python program to combine items at the same position of two lists into sublists. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Reverse each string in a list

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

1 min readRead →
Python practice

Difference between two lists

Write a Python program to get the items in the first list that are not in the second. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Join elements with a special character

Write a Python program to merge all elements of a list into one string using a special character. 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.