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,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 36 of 159
Python practice

Use a database file

Write a Python program that saves data to a .db file and reads it back with a new connection. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Transaction with rollback

Write a Python program that transfers money between accounts and rolls back on error. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Customers without orders

Write a Python program to find customers who have not placed any order. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Join two tables

Write a Python program to list each order with the customer's name. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Group by

Write a Python program to count employees and average salary per department. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Aggregate functions

Write a Python program to get the count, average, minimum and maximum marks. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Rows as dictionaries

Write a Python program to read rows by column name. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

fetchone, fetchmany, fetchall

Write a Python program that shows the three fetch methods. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Delete rows

Write a Python program to delete students with marks below 70. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Update rows

Write a Python program to add 5 bonus marks to students below 80. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python

Select with a condition

Write a Python program to select students who scored above 80. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Insert many rows

Write a Python program to insert several rows at once. 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.