Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command = input()
- dict = {}
- while command != 'End':
- company, ident_num = command.split(' -> ')
- if company not in dict:
- dict[company] = []
- if ident_num not in dict.values():
- dict[company].append(ident_num)
- command = input()
- for k,v in dict.items():
- print(f"{k}")
- for i in v:
- print(f'-- {"".join(i)}')
- print(dict.values())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement