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

Dictionary to DataFrame

Write a pandas program to convert a dictionary into a DataFrame. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of smallest and largest

Write a pandas program to find the index of the smallest and largest values. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Date strings to datetimes

Write a pandas program to convert date strings in different formats into datetimes. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Length of each word

Write a pandas program to count the characters of each word. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Capitalise first and last letters

Write a pandas program to make the first and last letter of each word uppercase. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Items at positions

Write a pandas program to extract items at positions 1, 4 and 7. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Frequency of each value

Write a pandas program to count each value. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Minimum of a Series

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

1 min readRead →
Python practice

Maximum of a Series

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

1 min readRead →
Python practice

Items not in another Series

Write a pandas program to get the items of one Series not present in another. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Standard deviation of a Series

Write a pandas program to find the standard deviation of a Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Mean of a Series

Write a pandas program to find the mean of a Series. 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.