Къде ми е грешката в задача 03.Address book и защо judge ми дава 0 точки?
Ето моя код https://pastebin.com/K1LSbK5d.
Това е условието на задачата.
03.Address Book
Write a function that stores information about a person’s name and his address. The input comes as an array of strings. Each string contains the name and the address separated by a colon. If you receive the same name twice just replace the address. At the end print the full list, sorted alphabetically by the person’s name.
Input |
Output |
['Tim:Doe Crossing', 'Bill:Nelson Place', 'Peter:Carlyle Ave', 'Bill:Ornery Rd'] |
Bill -> Ornery Rd Peter -> Carlyle Ave Tim -> Doe Crossing |