Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> class Student:
... def __init__(self, name):
... self.name = name
... def __repr__(self):
... return f"Student({self.name!r})"
...
>>> student = Student("John")
>>> student
Student('John')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment