Skip to content

Instantly share code, notes, and snippets.

@Poxios
Created October 30, 2023 05:00
Show Gist options
  • Save Poxios/ee4ebb5cb82077d1089d6350cd59295d to your computer and use it in GitHub Desktop.
Save Poxios/ee4ebb5cb82077d1089d6350cd59295d to your computer and use it in GitHub Desktop.
jungsan
p = {
"영현": 0,
"승언": 0,
"준하": 0,
"종민": 0,
"관록": 0,
"도윤": 0,
"동형": 0,
"준혁": 0,
"형준": 0,
"태헌": 0,
"정익": 0,
}
a = [
[103_500, ["영현", "승언", "준하", "종민", "관록"]],
[144_400, ["도윤", "동형", "준혁", "태헌", "형준", "정익"]],
[98_000, ["영현", "승언", "준하", "종민", "도윤", "동형", "준혁", "형준", "태헌"]],
]
for i in a:
for j in i[1]:
p[j] += i[0] // len(i[1])
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment