Class Methods
Lesson 33Author : GOUP
Last Updated : September, 2020
Code
class Student:
def __init__(self, name, major, gpa):
self.name = name
self.major = major
self.gpa = gpa
def has_honors(self):
if self.gpa >= 3.5:
return True
return False