Date-and-times-10

Screen Link:

My Code:


for row in potus:
    end_date = row[3]
    end_date = dt.datetime.strptime(end_date, "%m/%d/%y %H:%M")
    row[3] = end_date
appt_lengths={}



for i in potus:
    appt_start_date = i[2]
    appt_end_date = i[3]
    length =  appt_end_date - appt_start_date 
    for length in appt_lengths:
        appt_lengths[length] += 1
    else:
        appt_lengths[length] = 1

        
min_length = min(appt_lengths)
max_length = max(appt_lengths)

    ```

Above code gives me error 

same as the answer provided 

appt_lengths is shorter than we expected.


<!--Enter other details below: -->

Please also attach mission or screen link.