Python Dates and Times in Python Dates and Times Time Tango

not sure how else to answer

I'm not sure how else to approach this question

combo.py
import datetime

def time_tango( date_n, time_n):
    return datetime.datetime.strptime('date_n time_n' , '%Y-%m-%d %H:%M')

1 Answer

Rick Gleitz
Rick Gleitz
39,471 Points

I think you're going too far with this. It just wants you to combine your date and time arguments. You don't need to format the date and time. So in the return statement, replace strptime with combine, take out the formatting and the comma before it and separate your date_n and time_n with a comma and remove the quotes. Hope this helps.