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 141 of 159
Python practice

Print 0 to 6 except 3 and 6

Write a Python program that prints all the numbers from 0 to 6 except 3 and 6. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count even and odd numbers

Write a Python program to count the even and odd numbers in a series. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Build a string character by character

Write a Python program that adds each character of a word from the user to an empty string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Star pattern that grows then shrinks

Write a Python program to print a star pattern that grows from 1 to 5 stars and shrinks back to 1, using nested...

1 min readRead →
Python

Python OS Module Programs with Solutions

49 Python os module programs with solutions: folders, paths, walk, copy files, backups, environment variables, permissions and commands, explained.

5 min readRead →
Python practice

Extract 10-digit mobile numbers

Write a Python program to get all 10-digit mobile numbers from a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Extract email addresses

Write a Python program to extract all email addresses from a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Each character on a new line

Write a Python program to print each character on its own line. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Print a string 3 times

Write a Python program to print a string 3 times. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Collapse repeated characters

Write a Python program to replace each group of repeated characters with a single character. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Swap case

Write a Python program to swap upper and lower case. 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.