p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Datetime
Exercise: Read attributes from a date
Exercise: Read attributes from a date
Pull the
year
,
month
, and
day
off a date object and store each one in its own variable.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output