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

Numbers from 1 to 30 divisible by 3

Write a Python program to print all the numbers from 1 to 30 that are divisible by 3. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a number is divisible by 3

Write a Python program to check whether a given number is divisible by 3. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Lowercase letter diamond

Write a Python program to print the letters a to y in rows of 1, 3, 5, 7, 5, 3, 1 letters. Step-by-step explanation, colour-coded code and real…

1 min readRead →
Python practice

Uppercase letter diamond

Write a Python program to print the letters A to Y in rows of 1, 2, 3, 4, 5, 4, 3, 2, 1 letters. Step-by-step explanation, colour-coded code…

1 min readRead →
Python practice

Maximum number in a list

Write a Python program to find the largest number in a list using a loop. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Copy and sort descending

Write a Python program to copy elements from one list into an empty list and print them in descending...

1 min readRead →
Python practice

Sort a list with loops

Write a Python program to sort a list using loops (without `sort()`). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count special characters in a file

Write a Python program to count the special characters in a file. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count uppercase letters in a file

Write a Python program to count the uppercase letters in a file. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count digits in a file

Write a Python program to count the digits in a file. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count characters in a file

Write a Python program to count the characters in a file (letters, digits, punctuation and spaces, not counting...

1 min readRead →
Python practice

Stop at 6 with a for loop

Write a Python program to print 1 to 10 but stop when the number is 6, using a for loop. 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.