Is Any Date Format Accepted?


#1

Create a variable called todays_date and assign a value that will represent today’s date to that variable.
Is any date formart accepted???
DD-MM-YYYY; DD-MM-YY; DD/MM/YYYY; DD/MM/YY;
MM-DD-YYYY; MM-DD-YY; MM/DD/YYYY; MM/DD/YY;


FAQ: Learn Python - Python Syntax - Variables
#2

Hi @anapitta,

You can use whichever date format you prefer. The hint suggests writing the date in long format:

todays_date = "March 31, 2023"