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

Latest articles

1,677 articles · page 136 of 140
Python practice

Groups of five consecutive numbers

Write a Python program to create lists of five consecutive numbers from 1 to 20. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Numbers and their squares as sublists

Write a Python program to create sublists of each number from 1 to 10 and its square. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Print each element separately

Write a Python program to print each element of a list of tuples separately. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Join words without spaces

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

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

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.