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

Least frequent character

Write a Python program to find the least frequent character in a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count occurrences of a word

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

1 min readRead →
Python practice

Position of a word in a sentence

Write a Python program to find the position (word number, starting at 1) of a word in a sentence. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Number words to digits

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

1 min readRead →
Python practice

Float to 3 decimal places as a string

Write a Python program to format a float to 3 decimal places and convert it to a string. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Split and join a string

Write a Python program to split a string into words and join them with "-". Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove newlines from a string

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

1 min readRead →
Python practice

Convert to uppercase

Write a Python program to convert all the characters in a string to uppercase. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Does a string have special characters?

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

1 min readRead →
Python practice

Remove duplicate characters

Write a Python program to remove duplicate characters, keeping the first occurrence of each. 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.