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 practice articles

1,137 articles · page 68 of 95 · Clear filters
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 →
Python practice

Check if a value is a float

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

1 min readRead →
Python practice

Check if a value is an integer

Write a Python program to check whether a given value is an integer. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check a lowercase character

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

1 min readRead →
Python practice

Larger of two numbers

Write a Python program to print the larger of two numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Positive or negative, even or odd

Write a Python program to check whether a number is positive or negative and even or odd. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a number is negative

Write a Python program to check whether a number is negative and print True or False. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a number is positive

Write a Python program to check whether a number is positive and print True or False. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Pass or fail

Write a Python program that reads marks and prints Pass if they are greater than 35, otherwise...

1 min readRead →
Python practice

Check a palindrome string

Write a Python program to check whether a string is a palindrome, ignoring case. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check a palindrome number

Write a Python program to check whether a number is a palindrome. 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.