I do a journal program, and have I have some teachers, who written as dictionaries. For example:
Joshua_Danice = {'first_name': 'Joshua', 'last_name': 'Danice',
'supervision': ['9K', '8A', '9B'],
'subjects': ['biology, chemistry']}
When you try to go in my program, you should print your first name and last one. It is writing itself into a variable "teacher":
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
self.teacher = str(self.first_name + "_" + self.last_name)
So we have
self.teacher = "Joshua_Danice"
I want to replace that string to the variable, so I can use "Joshua_Danice" string as dictionary, and use keys from this one.