Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import data ##this is a Python file containing the data structures for the program.
- """Performs functionality required for Task 1, bullet point 1.
- Meets requirements specified requirements of:
- 'appropriate prompts for data entry' and 'validation of input',
- 'error messages and output is clear and understandable'
- 'all identifiers have meaningful names'."""
- def capture_tg_name():
- tg = input('Please specify a tutor group to enter data for: ')
- while tg.upper() not in data.tutorgroups:
- input(' Not a valid tutor group, please try again: ')
- return tg.upper()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement