Hi! Here is my code for the Medical Insurance Project, where I incorporated the challenges except the last: how can I update the class so that users can upload lists of patient data rather than individual numbers?
https://gist.github.com/4f7a32b955a5508d05ce97085e3c1d25
At first this is what I did, but clearly this was wrong, since as I later realized I gave more positional arguments than what init accepts. Any suggestions?
class Patient:
def __init__(self, list_of_patient_info):
self.name = list_of_patient_info[0]
self.age = list_of_patient_info[1]
self.sex = list_of_patient_info[2]
self.bmi = list_of_patient_info[3]
self.num_of_children = list_of_patient_info[4]
self.smoker = list_of_patient_info[5]