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

Mean of a column

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

1 min readRead →
Python practice

Sort by name

Write a pandas program to sort by name in ascending order. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add a row

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

1 min readRead →
Python practice

Sum of a column

Write a pandas program to sum the age column. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Change one value

Write a pandas program to change John's age to 24. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Ages between 25 and 30

Write a pandas program to print rows where age is between 25 and 30. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count rows and columns

Write a pandas program to count the rows and columns. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Rows where age > 29

Write a pandas program to select the rows where age is greater than 29. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Select a row

Write a pandas program to print a selected row. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Select columns

Write a pandas program to print selected columns. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Last n rows

Write a pandas program to print the last n rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

First n rows

Write a pandas program to print the first n rows. 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.