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

Remove files of one extension

Write a Python program to remove all files with a specific extension from a folder. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove a file

Write a Python program to remove a file at a given path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Copy a file into 10 nested folders

Write a Python program to copy a file into 10 different nested directories. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Copy files of one extension

Write a Python program to copy only the files with a specific extension. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Copy a file

Write a Python program to copy a file from a source path to a target path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count files per extension

Write a Python program to count the files of each extension in a target path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count folders in a folder

Write a Python program to count the folders in a target path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count files in a folder

Write a Python program to count the files in a target path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List everything in a folder

Write a Python program to list all the files and folders in a target path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is there a folder at a path?

Write a Python program to check whether a directory exists at a given path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is there a file at a path?

Write a Python program to check whether a file exists at a given path. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Join two paths

Write a Python program to join two paths. 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.