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

Print a string 3 times

Write a Python program to print a string 3 times. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Collapse repeated characters

Write a Python program to replace each group of repeated characters with a single character. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Swap case

Write a Python program to swap upper and lower case. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of each character

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

1 min readRead →
Python practice

Reverse the words

Write a Python program to reverse the order of words. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add “ly” after “ing”

Write a Python program to add "ly" if a string ends with "ing", otherwise add "ing". Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Add “ing” to a string

Write a Python program to add "ing" at the end of a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a string binary?

Write a Python program to check whether a string contains only 0 and 1. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove the kth character

Write a Python program to remove the character at index k. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Accept only vowel strings

Write a Python program to accept a string only if it contains vowels only. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Length without spaces

Write a Python program to get the length of a string, not counting spaces. 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.