Find repeated words
Write a Python program to find accidentally repeated words like "the the". Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to find accidentally repeated words like "the the". Step-by-step explanation, colour-coded code and real output.
Write a Python program to check IPv4 addresses (each part 0-255). Step-by-step explanation, colour-coded code and real output.
Write a Python program to convert camelCase names to snake_case. Step-by-step explanation, colour-coded code and real output.
Write a Python program to mask all but the last 4 digits of card numbers. Step-by-step explanation, colour-coded code and real output.
Write a Python program to parse "LEVEL date message" log lines into dictionaries. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the word "test" but not "testing" or "latest". Step-by-step explanation, colour-coded code and real output.
Write a Python program to split text on commas, semicolons and spaces. Step-by-step explanation, colour-coded code and real output.
Write a Python program to remove everything except letters, digits and spaces. Step-by-step explanation, colour-coded code and real output.
Write a Python program to replace runs of whitespace with a single space. Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract http and https URLs from text. Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract hashtags and @mentions from a tweet. Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract dates in DD-MM-YYYY format and print them as YYYY-MM-DD. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.