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

Split on the last delimiter

Write a Python program to split a string on the last occurrence of a delimiter. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count and show vowels

Write a Python program to count and display the vowels in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Swap commas and dots

Write a Python program to swap commas and dots. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
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 →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.