Welcome to the Treehouse Community
Looking to learn something new?
help with time_tango function takes a date and a time and returns a combination of the two in form of a datetime object.
Write a function named time_tango that takes a date and a time. It should combine them into a datetime and return it.
import datetime def time_tango(date, time): return datetime.combine(date, time)
Steven TagawaPython Development Techdegree Graduate 14,426 Points
"datetime" is the module/file, and "datetime" is also the class. So when you're accessing methods of the
datetime class, like
.combine, you have to write
datetime.datetime -- so,