Skip to content

Instantly share code, notes, and snippets.

@ycui1
Created November 6, 2021 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ycui1/1e1a3ebf48d7de28d6673aba3d9830d2 to your computer and use it in GitHub Desktop.
Save ycui1/1e1a3ebf48d7de28d6673aba3d9830d2 to your computer and use it in GitHub Desktop.
class Student:
def __init__(self, name, age):
self.name = name
self.age = age
def __repr__(self):
return "Student __repr__ string"
def __str__(self):
return "Student __str__ string"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment