Py Basics - s-chilka/Py-Project GitHub Wiki
Hash Operations
`class Student: def init(self, age, name): self.age = age self.name = name
def __eq__(self, other):
return self.age == other.age and self.name == other.name
def __hash__(self):
return hash((self.age, self.name))
student = Student(23, 'Shubham') print("The hash is: %d" % hash(student))`