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

Python articles

298 articles · page 18 of 25 · Clear filters
Python

Python List Comprehension

Learn Python list comprehensions: transform and filter lists in one line, use if-else inside, nested comprehensions, plus set and dict comprehensions.

7 min readRead →
Python

Python String Formatting & f-strings

BeginnerLesson 17 of 4710 min read8 runnable examplesFormatting turns values into neat, readable text: prices with two decimals, columns that line up, percentages, dates. f-strings are…

6 min readRead →
Python

Python Match Case

Learn Python's match case statement, the switch-case alternative: literal patterns, OR patterns, guards, wildcards and matching lists, tuples and dicts.

7 min readRead →
Python

Python Operators & Booleans

Learn every Python operator: arithmetic, assignment, comparison, logical, identity, membership and bitwise, plus booleans, truthiness and operator precedence.

6 min readRead →
Python

Python Type Casting

Learn Python type conversion with int(), float(), str(), bool(), list(), tuple(), set() and dict(), implicit vs explicit casting, and how to avoid ValueError.

5 min readRead →
Python

Python Numbers & Math

Learn Python numbers: int, float and complex, arithmetic, rounding, float precision, the math module and random numbers, with runnable examples.

6 min readRead →
Python

Python User Input

Learn the Python input() function: read text, convert it to int or float, read several values on one line, and handle invalid input safely.

5 min readRead →
Python

Python Output & Comments

Learn Python print() with sep, end and f-strings, print to a file, and write single-line comments, multi-line comments and docstrings, with runnable examples.

7 min readRead →
Python

Python Syntax

Learn Python syntax rules: statements, indentation, blocks, line continuation, keywords and case sensitivity, with runnable examples and common errors.

6 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.