earlution

task1.py

Jan 22nd, 2021 (edited)
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import data ##this is a Python file containing the data structures for the program.
  2.  
  3. """Performs functionality required for Task 1, bullet point 1.
  4. Meets requirements specified requirements of:
  5.  'appropriate prompts for data entry' and 'validation of input',
  6.  'error messages and output is clear and understandable'
  7.  'all identifiers have meaningful names'."""
  8. def capture_tg_name():
  9.     tg = input('Please specify a tutor group to enter data for: ')
  10.     while tg.upper() not in data.tutorgroups:
  11.         input(' Not a valid tutor group, please try again: ')
  12.     return tg.upper()
  13.  
RAW Paste Data