Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created January 23, 2013 07:07
Show Gist options
  • Save kaworun/4602742 to your computer and use it in GitHub Desktop.
Save kaworun/4602742 to your computer and use it in GitHub Desktop.
name = {"kaworun", "yozora"}
text1 = "さんの得点は…"
text2 = "さんの平均点は…"
ja = {49, 57}
en = {60, 45}
ss = {63, 90}
db = {95, 99}
sum = ja[1] + en[1] + ss[1] + db[1]
print(name[1], text1, sum)
sum = ja[2] + en[2] + ss[2] + db[2]
print(name[2], text1, sum)
sum = (ja[1] + en[1] + ss[1] + db[1]) / 4
print(name[1], text2, sum)
sum = (ja[2] + en[2] + ss[2] + db[2]) / 4
print(name[2], text2, sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment