Skip to content

Instantly share code, notes, and snippets.

Last active Oct 11, 2021
What would you like to do?
class Student:
def __init__(self, name): = name
def study(self):
print(f"The student {} is studying.")
def is_adult(age):
return age >= 18
def students_from_list(cls, names):
return [cls(name) for name in names]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment