earlution

data.py

Jan 22nd, 2021 (edited)
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Defining global data structures for program.
  2.  
  3. # Populated list containing names of all tutorgroup.
  4. tutorgroups = ['7A', '7B', '7C', '7D', '7E', '7F',
  5.                '8A', '8B', '8C', '8D', '8E', '8F',
  6.                '9A', '9B', '9C', '9D', '9E', '9F',
  7.                '10A', '10B', '10C', '10D', '10E', '10F',
  8.                '11A', '11B', '11C', '11D', '11E', '11F']
  9. # List to hold num of students in each tutorgroup.
  10. nums_of_students = [0, 0, 0, 0, 0, 0,
  11.                     0, 0, 0, 0, 0, 0,
  12.                     0, 0, 0, 0, 0, 0,
  13.                     0, 0, 0, 0, 0, 0,
  14.                     0, 0, 0, 0, 0, 0]
  15. # List to hold num of candidates for each tutorgroup.
  16. nums_of_candidates = [0, 0, 0, 0, 0, 0,
  17.                       0, 0, 0, 0, 0, 0,
  18.                       0, 0, 0, 0, 0, 0,
  19.                       0, 0, 0, 0, 0, 0,
  20.                       0, 0, 0, 0, 0, 0]
  21. # 2D list (list of lists), to hold the candidate names for each tutorgroup.
  22. candidate_names = [[], [], [], [], [], [],
  23.                    [], [], [], [], [], [],
  24.                    [], [], [], [], [], [],
  25.                    [], [], [], [], [], [],
  26.                    [], [], [], [], [], []]
  27. # 2D list (list of lists), to hold num of abstentions and candidate votes for
  28. #  each tutorgroup.
  29. candidate_votes = [[], [], [], [], [], [],
  30.                    [], [], [], [], [], [],
  31.                    [], [], [], [], [], [],
  32.                    [], [], [], [], [], [],
  33.                    [], [], [], [], [], []]
RAW Paste Data