Created
November 6, 2021 16:22
-
-
Save ycui1/1e1a3ebf48d7de28d6673aba3d9830d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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