Closed ghost closed 6 years ago
Hey Yosef, good point, thanks.
I did not hit this because I did not reverse the sort: sorted(data, key=len)[-1]
I updated the tests to accept both Carolinas as correct answers here:
correct_answers = ('North Carolina', 'South Carolina') assert get_longest_state(us_state_abbrev) in correct_answers assert get_longest_state(states) in correct_answers
in the same length .... it returns me an error :