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

Longest and shortest word

Write a Python program to find the longest and the shortest word in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Vowel or consonant

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

1 min readRead →
Python practice

Count occurrences of a substring

Write a Python program to count how many times a substring occurs in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Length of the longest string in a list

Write a Python program that returns the length of the longest string in a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

First and last 2 characters

Write a Python program to build a string from the first 2 and the last 2 characters of a string. If the string is shorter than 2 characters,…

2 min readRead →
Python practice

Round every number and sum

Write a Python program to round every number in a list and print the sum of the rounded numbers multiplied by the list...

1 min readRead →
Python practice

Decode a run-length encoded list

Write a Python program to decode a run-length encoded list, where [n, x] means x repeated n times. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove repeated dictionaries

Write a Python program to remove repeated dictionaries from a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Word lengths as a dictionary

Write a Python program to build a dictionary of each word and its length. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove the 2nd character of each word

Write a Python program to remove the 2nd character of each word. 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.