Question: Building on the Student class created in the previous lab, we are going to create a Cour class that represents a course with a list
Building on the Student class created in the previous lab, we are going to create a Cour class that represents a course with a list of Student objects as a course roster and output its size. The file main.py will contain both the Student class and the Course class. Copy your Student class from the previous lab, or write a Student class with the following instance methods: - A Student constructor that takes parameters for self, first, last, and gpa and sets the instance variables to the parameter values. - A method get_first(self)-return student's first name - A method get_last (self) - return student's last name - A method get_gpa(self)-return student's gpa Ex: If a new Student object is created with Andrew, Woo, 3.6, the default return values are: Andrew woo 3.6 Now write a course class and implement the following instance meth ds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
