TypeError: Times and Dates in Python - Mission 10

Screen Link: https://app.dataquest.io/m/353/working-with-dates-and-times-in-python/10/summarizing-appointment-lengths

for row in potus:
   end_date = row[3]
   end_date = dt.datetime.strptime(end_date, "%m/%d/%y %H:%M")
   row[3] = end_date
for row in potus:
   start_date = row[2]
   end_date = row[3]
   length = end_date - start_date
   if length in appt_lengths:
       appt_lengths[length] +=1
       appt_lengths[length] = 1
min_length = min(appt_lengths)        
max_length = max(appt_lengths)

What actually happened:

The above error is generated on the already provided code that converts the appt_end_date to datetime objects. Same error is thrown when the code provided in the solution is run.


2 posts were merged into an existing topic: 353-10 Answer Error