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

Season from a month

Write a Python program that reads a month name and prints its season (Indian seasons: Winter Dec-Feb, Summer Mar-May, Monsoon Jun-Sep, Post-monsoon...

2 min readRead →
Python practice

Isosceles triangle check

Write a Python program to check whether a triangle is isosceles (at least two equal sides). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Scalene triangle check

Write a Python program to check whether a triangle is scalene (all three sides different). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Equilateral triangle check

Write a Python program to check whether a triangle is equilateral (all three sides equal). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Days in a month

Write a Python program to convert a month name to its number of days. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Check a consonant

Write a Python program to check whether a letter is a consonant. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check a vowel

Write a Python program to check whether a letter is a vowel. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Fizz Buzz for multiples of 2 and 3

Write a Python program that prints "FizzBuzz" for multiples of both 2 and 3, "Fizz" for multiples of 2 and "Buzz" for multiples of 3; otherwise print the...

1 min readRead →
Python practice

Check a leap year

Write a Python program to check whether a year is a leap year. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Electricity bill with slabs

Write a Python program to calculate an electricity bill. Units 1-50 cost Rs 0.50, units 51-100 Rs 0.75, units 101-250 Rs 1.25 and units above 250 Rs 1.50...

2 min readRead →
Python practice

Print 10 to 15 except 13

Write a Python program to print all the numbers from 10 to 15 except 13. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a value is a string

Write a Python program to check whether the given input is a string. 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.