Python Programming, Python3, Software Development, Software Engineering, Machine Learning.
don’t override dunder functions, here is the output we’ll get for first_info class first_info.__str__() # output -> '<__main__.Info object at 0x114145b90>' first_info.__repr__() # output -> '<__main__.Info object at 0x114145b90>' first_info.__dict__ # output -> {'info_id': 123, 'info_description':