Extract dates
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.
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 extract dates in DD-MM-YYYY format and print them as YYYY-MM-DD. Step-by-step explanation, colour-coded code and real output.
Write a Python program to extract integers and decimals from text. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check that a password has 8+ characters with upper, lower, digit and...
Write a Python program to validate 6-digit Indian PIN codes (not starting with 0). Step-by-step explanation, colour-coded code and real output.
Write a Python program to validate 10-digit Indian mobile numbers with an optional +91. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check which strings are valid email addresses. Step-by-step explanation, colour-coded code and real output.
Write a Python program that reads the active exception with `sys.exception()`. Step-by-step explanation, colour-coded code and real output.
20 Python sys module programs with solutions: argv, exit codes, stdin, stdout, stderr, sys.path, version checks and getsizeof, each explained.
Write a Python program that parses named options with argparse. Step-by-step explanation, colour-coded code and real output.
Write a Python program that stops with a message when a required file is missing. Step-by-step explanation, colour-coded code and real output.
Write a Python program that prints the machine's byte order and the default text encoding. Step-by-step explanation, colour-coded code and real output.
Write a Python program that checks which interpreter file is running. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.