Python Dates and Times in Python Where on Earth do Timezones Make Sense? Datetime Awareness

What is wrong with this

I think I used tzinfo wrong. Please tell me where I went wrong.
import datetime

naive = datetime.datetime(2015, 10, 21, 4, 29)
US/Pacific = datetime.timezone(datetime.timedelta(hours=-8))
hill_valley = datetime.datetime(2015, 10, 21, 4, 29, tzinfo = US/Pacific)

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Staff

Hi there, Aizah Sadiq ! A variable in Python may only contain alphanumeric characters (A-z, 0-9) or underscores _. It may not begin with a number. The character / may not be used in a variable name.

Hope this helps! :sparkles: