I have a problem with this program.. I'm extremely new to objects and classes... so basically I got a class roster that is going to be ultimately assigned to a course. I'm trying to find out how to exactly put the students and instructors inside of a course. I'm kind of stuck here, i got everything pretty much figured out but, like i said I'm new to this, I can't get the add and remove feature implemented. any help would be greatly appreciated. Thank you in advanced.
class course:
def __init__(self, courseName, capacity):
self.courseName = courseName
self.capacity = capacity
def add_student(self,key):
self.student[key] = value
def remove_student(self,del_key):
del self.student[del_key]
object(unless you have something else to inherit from); otherwise you get "classic classes", which have all kinds of annoying quirks that you don't want to learn about or deal with.CamelCaseclass names,lower_casevariables and functions.