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

Most common letters

Write a Python program to find the 3 most common letters in a word. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Count words with Counter

Write a Python program to count the words in a sentence with Counter. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Python Datetime Programs with Solutions

20 Python datetime programs with solutions: format and parse dates, add days, age, weekday, month end, business days, time zones, each explained.

3 min readRead →
Python practice

Print a month calendar

Write a Python program to print the calendar of a month. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Countdown to an event

Write a Python program that prints the days, hours and minutes until an event. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Next Monday

Write a Python program to find the date of the next Monday after a given date. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Day of the year and week number

Write a Python program to get the day of the year and ISO week number of a date. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Sort date strings

Write a Python program to sort a list of date strings in date order. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Convert time zones

Write a Python program to convert 12:00 UTC to Indian Standard Time. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Timestamps

Write a Python program to convert between a datetime and a Unix timestamp. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

All dates in a range

Write a Python program to list every date in a week. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Difference between two times

Write a Python program to find hours and minutes between two datetimes. 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.