How to print class instances in Python?

Hey, I had an issue. When I tried printing the class instance, it gave me this result:

>>> class RandomDummy():
	def __init__(self):
		self.randomdummy = 'Empty'

		
>>> print(RandomDummy())
<__main__.Test object at 0x000001DA0D6B32E0>

How can I define a custom string representation for instances of a class in Python so that when I print them, they display a specific value (e.g. the value in the attribute)?