Format a date
Write a Python program to print a date in several formats. 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 print a date in several formats. Step-by-step explanation, colour-coded code and real output.
Write a Python program to create a date and print its year, month, day and weekday. Step-by-step explanation, colour-coded code and real output.
20 Python iterator and generator programs with solutions: iter, next, yield, generator expressions, pipelines, infinite sequences and itertools.
Write a Python program that groups log lines by level with `itertools.groupby`. Step-by-step explanation, colour-coded code and real output.
Write a Python program that takes Fibonacci numbers while they are below 100. Step-by-step explanation, colour-coded code and real output.
Write a generator that keeps a running average of values sent to it. Step-by-step explanation, colour-coded code and real output.
Write a Python program that compares the memory of a list and a generator of a million numbers. Step-by-step explanation, colour-coded code and real output.
Write a Python program that shows zip and enumerate return iterators. Step-by-step explanation, colour-coded code and real output.
Write a Python program that assigns browsers to 7 tests in rotation. Step-by-step explanation, colour-coded code and real output.
Write a generator that produces ids like TC-001, TC-002, . Step-by-step explanation, colour-coded code and real output.
Write a generator that yields the running total of a list. Step-by-step explanation, colour-coded code and real output.
Write a recursive generator that flattens nested lists. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.