You are viewing a single comment's thread. Return to all comments →
Don't need "self.age >= 13" - it's a redundancy
def amIOld(self): if self.age < 13: print("You are young.") elif self.age < 18: print("You are a teenager.") else: print("You are old.")
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
Don't need "self.age >= 13" - it's a redundancy