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

Reorder the index

Write a pandas program to change the order of a Series' index. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Subset by condition

Write a pandas program to select the values below 40. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add data to a Series

Write a pandas program to add new values to an existing Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort a Series

Write a pandas program to sort a Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Series of lists to one Series

Write a pandas program to turn a Series of lists into one flat Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Series to array

Write a pandas program to convert a Series to a NumPy array. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Convert a Series to numbers

Write a pandas program to convert a mixed Series to numbers, turning text into NaN. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

NumPy array to Series

Write a pandas program to convert a NumPy array to a Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Dictionary to Series

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

1 min readRead →
Python practice

Are Series elements equal?

Write a pandas program to compare two Series element by element. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Divide two Series

Write a pandas program to divide two Series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Multiply two Series

Write a pandas program to multiply two 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.