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

Keep only one given character

Write a Python program to remove all characters except a given one. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Characters that occur more than once

Write a Python program to build a string of the characters that occur more than once. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove consecutive duplicates

Write a Python program to collapse consecutive duplicate characters into one. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Longest run of zeros

Write a Python program to find the longest run of consecutive 0s in a binary string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove leading zeros from an IP address

Write a Python program to remove leading zeros from each part of an IP address. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sum of digits in a string

Write a Python program to add up the digits in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove all spaces

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

1 min readRead →
Python practice

Second most repeated word

Write a Python program to find the second most repeated word. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

First repeated word

Write a Python program to find the first word that repeats. 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.