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 145 of 159
Python practice

String to a list of words

Write a Python program to convert a string into a list of words. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Does a string contain every letter?

Write a Python program to check whether a string contains all letters of the alphabet (a pangram). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Strip spaces

Write a Python program to remove leading and trailing spaces. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of a character

Write a Python program to print the index of a character in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Frequency of every substring

Write a Python program to count every substring of a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a substring present?

Write a Python program to check whether a substring is present in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Random binary string

Write a Python program to generate a random binary string of a given length. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort the characters of a string

Write a Python program to sort the characters of a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is one string a subset of another?

Write a Python program to check whether all characters of one string appear in another. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Find duplicate characters

Write a Python program to find the characters that appear more than once (ignoring spaces). Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove punctuation

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

1 min readRead →
Python practice

Remove blank strings from a list

Write a Python program to remove blank strings from a list of strings. 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.