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 61 of 140
Python

Python Tuple

Explore the versatility of Python tuples. Dive into the world of immutable data structures and discover how tuples can streamline your code.

13 min readRead →
Python

Python Lists

Learn Python lists with runnable examples: create, index, slice, add, remove, sort and copy lists, then practise with 100 list programs and solutions.

8 min readRead →
Python

Python Strings & Methods

Learn Python strings: create, index and slice them, use common string methods like split, join, replace, strip and find, and understand immutability.

8 min readRead →
Python

Python Loops: for & while

Learn Python for and while loops: range(), looping over lists, strings and dicts, break, continue, else on loops, nested loops and common loop patterns.

7 min readRead →
Python

Python Data Types

Learn Python's built-in data types: numbers, strings, booleans, None, lists, tuples, sets and dictionaries, mutable vs immutable, and how to check a type.

6 min readRead →
Python

Python If…Else

Learn Python if, elif and else statements, nested conditions, the one-line conditional expression, and how to combine conditions with and, or and not.

6 min readRead →
Python

Python Variables

Learn Python variables: create and reassign them, naming rules, multiple assignment, swapping values, constants and how names refer to objects.

7 min readRead →
Python practice

Median of a list

Write a Python program to get the median of all the elements of a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python

Python Introduction

What is Python? Learn its history, key features, what Python is used for and how the interpreter runs your code, with runnable examples and a quiz.

6 min readRead →
Python practice

Dog inherits from Animal

Create `Dog` (inherits `Animal`) with breed and weight, and a method to print all details. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Animal class

Create `Animal` with name and colour and a method to print them. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

ShoppingCart class

Create `ShoppingCart` with items and total cost, and methods to add and remove items and calculate the...

2 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.