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 25 of 25 · Clear filters
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

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

Rows with missing age

Write a pandas program to select rows where age is missing. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python

Python OS Module Programs with Solutions

49 Python os module programs with solutions: folders, paths, walk, copy files, backups, environment variables, permissions and commands, explained.

5 min readRead →
Python practice

Python Loop Programs with Solutions

90 Python loop programs with solutions: number series, digits, primes, Armstrong and perfect numbers, star and alphabet patterns, files and lists.

10 min readRead →
Python practice

Python Function Programs with Solutions

39 Python function programs with solutions: return values, *args, prime, factorial, Fibonacci, LCM, HCF, shop and library systems, each explained.

4 min readRead →
Python practice

Python List Programs with Solutions

100 Python list programs with solutions: sum, max, reverse, duplicates, sorting, sublists, flatten, zip and more, each explained step by step.

10 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.