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 32 of 140
Python practice

Create a directory with os.mkdir()

Write a Python program to create a directory with `os.mkdir()`. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Create 10 folders with random names

Write a Python program to create 10 directories with random names. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Get the current working directory

Write a Python program to get the current working directory. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Set an environment variable

Write a Python program to set an environment variable for the current process. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List environment variables

Write a Python program to get the list of environment variables with `os.environ`. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Read an environment variable

Write a Python program to read an environment variable. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python

Python RegEx

Learn Python regular expressions with the re module: search, match, findall, sub and split, character classes, quantifiers, groups and flags, with examples.

9 min readRead →
Python

Python Modules & pip

Learn Python modules and packages: import styles, create your own module, __name__ == "__main__", the standard library, pip install and virtual environments.

5 min readRead →
Python

Python Polymorphism & Encapsulation

Learn Python polymorphism (duck typing, overriding, operator overloading) and encapsulation (private attributes, name mangling, @property setters).

7 min readRead →
Python

Python Inheritance

Learn Python inheritance: parent and child classes, super(), method overriding, multilevel and multiple inheritance, MRO, isinstance and abstract base classes.

8 min readRead →
Python

Python Iterators

Learn Python iterators: iterables vs iterators, iter() and next(), StopIteration, how for loops really work, custom iterator classes, and the itertools module.

6 min readRead →
Python

Python Recursion

Learn recursion in Python: base case and recursive case, factorial, Fibonacci, sum of digits, recursion limit, memoization with lru_cache, recursion vs loops.

7 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.