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,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 137 of 159
Python practice

Inverted right triangle of stars

Write a Python program to print an inverted right triangle of stars with 5 rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Right triangle of stars

Write a Python program to print a right triangle of stars with 5 rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Numbers from 0 to 100 divisible by 5

Write a Python program to find the numbers from 0 to 100 divisible by 5. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of odd numbers 1 to 100

Write a Python program to calculate the sum of all odd numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Electricity bill with slabs

Write a Python program to calculate an electricity bill: first 50 units Rs 0.50, next 100 units Rs 0.75, next 100 units Rs 1.25, above 250 units Rs…

1 min readRead →
Python practice

Taxi bill by distance

Write a Python program to calculate a bill: first 5 km at Rs 15/km, next 20 km at Rs 12/km, after that Rs...

1 min readRead →
Python practice

Characters of a string into a list

Write a Python program that adds every character of an input string to an empty list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Star pyramid

Write a Python program to print a pyramid of stars with 5 rows (1, 3, 5, 7, 9 stars). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Letter A pattern

Write a Python program to print the letter 'A' with stars. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Number diamond pattern

Write a Python program to print rows of numbers that grow from 1 to 5 numbers (1 to 15) and then shrink, counting back down (14 to...

2 min readRead →
Python practice

Letter T pattern

Write a Python program to print the letter 'T' with stars: two full rows of 9 stars and a 3-star stem in the...

1 min readRead →
Python practice

Keep only the digits of the input

Write a Python program that reads text and adds each digit to an empty list as a number. 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.