Commit 1c352554 authored by sully.khalifa's avatar sully.khalifa

Delete eventPage.py

parent 58659a48
class Student:
def __init__(self, name, age, grade):
self.name = name
self.age = age
self.grade = grade # 0 - 100
def get_grade(self):
return self.grade
class Course:
def __init__(self, name, max_students):
self.name = name
self.max_students = max_students
self.students = []
def add_students(self, student):
if len(self.students) < self.max_students:
self.students.append(student)
return True
return False
def get_average_grade(self):
pass
s1 = Student("Tim", 19, 25)
s2 = Student("Bill", 19,75)
s3 = Student("Jill", 19, 65)
course = Course("Science", 2)
course.add_students(s1)
course.add_students(s2)
print(course.students[0].name)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment