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 99 of 140
Python practice

Rename a key

Write a Python program to rename the key "d" to "e". Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Delete several keys

Write a Python program to delete a list of keys from a dictionary. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Initialise with default values

Write a Python program to give every name its own copy of a default settings dictionary. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List of all values

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

1 min readRead →
Python practice

List of all keys

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

1 min readRead →
Python practice

Dictionary to a list of tuples

Write a Python program to convert a dictionary to a list of (key, value) tuples. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Keys with a given value

Write a Python program to find all keys that have a given value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Values of one key from many dicts

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

1 min readRead →
Python practice

Which keys contain each value

Write a Python program to show, for each value, the keys whose lists contain it. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Unique values from list values

Write a Python program to extract the unique values from all list values, sorted. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Dictionary with the most keys

Write a Python program to find which of two dictionaries has more keys. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Value at a nested path

Write a Python program to get the value at a path of keys and indexes in nested data. Step-by-step explanation, colour-coded code and real output.

2 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.