Advertisement
WupEly

Untitled

Apr 22nd, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def conversions(*args):
  2. args = args[0]
  3. result = {}
  4. for line in args:
  5. s_line = line.split()
  6. who, what = s_line[0], s_line[-1]
  7. if what.lower() not in result.keys():
  8. result[what.lower()] = [who.title()]
  9. else:
  10. result[what.lower()].append(who.title())
  11.  
  12. return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement