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

Unpack a tuple into variables

Write a Python program to assign the values of a tuple to several variables and print them. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Element by index

Write a Python program to get an element of a tuple by its index. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Tuple with different data types

Write a Python program to create a tuple containing values of different data types. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List of (number, square) tuples

Write a Python program to create a list of tuples, each holding a number and its square. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Minimum value in a tuple

Write a Python program to find the minimum value in a tuple. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Maximum value in a tuple

Write a Python program to find the maximum value in a tuple. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Tuple of pairs from two lists

Write a Python program to create a tuple of pairs from two lists. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Import an Excel file

Write a pandas program to import an .xlsx file. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Import a CSV file

Write a pandas program to import a CSV file. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Fill with the median

Write a pandas program to replace NaN with the median. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Fill with the most frequent value

Write a pandas program to replace NaN with each column's most frequent value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Fill with the mean

Write a pandas program to replace NaN with the column mean. 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.