a4ary4n

Untitled

Jul 22nd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. def groups_per_user(group_dictionary):
  2.     user_groups = {}
  3.     # Go through group_dictionary
  4.     for ___:
  5.         # Now go through the users in the group
  6.         for ___:
  7.             # Now add the group to the the list of
  8. # groups for this user, creating the entry
  9. # in the dictionary if necessary
  10.  
  11.     return(user_groups)
  12.  
  13. print(groups_per_user({"local": ["admin", "userA"],
  14.         "public":  ["admin", "userB"],
  15.         "administrator": ["admin"] }))
Add Comment
Please, Sign In to add comment