import shelve

university = shelve.open('Universityfile')
university["schedules"] = {
    'Monday_schedule': ['math', 'English', 'Python'],
    'Tuesday_schedule': ['math', 'English', 'Python'],
    'Wednesday_schedule': ['math', 'English', 'Python'],
    'Thursday_schedule': ['math', 'English', 'Python'],
    'Friday_schedule': ['math', 'English', 'Python'],
    'Saturday_schedule': ['math', 'English', 'Python']
}
university['tutors'] = {
    'Math': ['Jak White', 'Jim Black'],
    'Python': ['Jon Doe', 'Jane Smith']
}

print(university['schedules']['Wednesday_schedule'])
print(university['tutors']['Python'])

university.close()
# university = {
#     "schedules": {
#         'Monday_schedule': ['math', 'English', 'Python'],
#         'Tuesday_schedule': ['math', 'English', 'Python'],
#         'Wednesday_schedule': ['math', 'English', 'Python'],
#         'Thursday_schedule': ['math', 'English', 'Python'],
#         'Friday_schedule': ['math', 'English', 'Python'],
#         'Saturday_schedule': ['math', 'English', 'Python']
#         },
#     'tutors': {
#         'Math': ['Jak White', 'Jim Black'],
#         'Python': ['Jon Doe', 'Jane Smith']
#     }
# }
#
# print(university['schedules']['Wednesday_schedule'])
# print(university['tutors']['Python'])
