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

Largest of three numbers

Write a Python program to find the largest of three numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check if a number is in a list

Write a Python program to check whether a given number is present in a list of numbers. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Interview process with nested if-else

Write a Python program that describes a two-round interview: a candidate who passes round 1 can take round 2, and passing both means placed. Use nested...

2 min readRead →
Python practice

Validate a user id in a list

Write a Python program to check whether a user id is present in a list of user ids. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check username and password

Write a Python program to check login with a given username and password. Step-by-step explanation, colour-coded code and real output.

2 min readRead →
Python practice

Check odd or even

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

1 min readRead →
Python practice

Check a prime number

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

2 min readRead →
Python practice

Square a number divisible by 11

Write a Python program to print the square of a number if it is divisible by 11. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Check divisibility by 3 and 5

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

1 min readRead →
Python practice

Assign grades from marks

Write a Python program to assign a grade from total marks: below 40 Fail, 40-49 C, 50-59 B, 60-69 A, 70-79 A+, 80-89 A++, 90-100 Excellent, anything else...

2 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.