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

Latest articles

1,677 articles · page 20 of 140
Python practice

Byte order and encoding

Write a Python program that prints the machine's byte order and the default text encoding. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Which Python is running?

Write a Python program that checks which interpreter file is running. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Float limits

Write a Python program that prints the largest float and float precision. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Largest list index

Write a Python program that prints `sys.maxsize` and shows ints can be bigger. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Recursion limit

Write a Python program that reads the recursion limit and handles RecursionError. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Size of objects

Write a Python program that compares the memory size of a few objects. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Which modules are loaded?

Write a Python program that checks whether a module has been imported yet. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Import from a custom folder

Write a Python program that adds a folder to `sys.path` and imports a module from it. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Inspect sys.path

Write a Python program that shows how many folders Python searches for modules. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Write with sys.stdout

Write a Python program that prints a progress bar with `sys.stdout.write`. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Read numbers from stdin

Write a Python program that reads numbers from standard input and prints their total. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Write errors to stderr

Write a Python program that writes normal output to stdout and errors to stderr. 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.