Class Methods
Lesson 33Author : 🦒
Last Updated : October, 2017
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