Skip to content

Instantly share code, notes, and snippets.

@JosephRedfern
Created July 18, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosephRedfern/3137970 to your computer and use it in GitHub Desktop.
Save JosephRedfern/3137970 to your computer and use it in GitHub Desktop.
Grade Workerouterer
modules = {"cm1101":0.0, "cm1102":0.0, "cm1103":0.0, "cm1201":0.0, "cm1202":0.0, "cm1203":0.0, "cm1205":0.0}
for module in modules:
modules[module]=float(raw_input("Grade for "+module+": "))
print "Overall Grade: "+str((20*(modules["cm1101"]+modules["cm1102"]+modules["cm1103"]+modules["cm1202"]+modules["cm1203"])+10*(modules["cm1201"]+modules["cm1205"]))/120.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment