Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Print Today's Date and Time | Automating Tasks with Python
Automating System Tasks with Python: A Beginner's Guide
Section 1. Chapter 2
single

single

bookChallenge: Print Today's Date and Time

Swipe to show menu

Task

Swipe to start coding

Write a function that displays a welcome message, today's date, and the current time using the datetime module.

  • Display a greeting message.
  • Print today's date as a date object.
  • Print the current time in HH:MM:SS format.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt