👍Welcome to my Python Intermediate videos Series

In this video, we will understand what magic methods are in Python, but we will try to focus on two of them. Since str and repr are responsible for similar behaviors, then it is important to mark the differences between those.

Timeline for the video:

  • 00:00 - 01:34 - What are magic methods in Python?
  • 01:35 - 05:33 - Creating str in your Classes.
  • 05:34 - 07:38 - How is repr different from str ?
  • 07:39 - 10:27 - Best practices for str and repr
  • 10:28 - 14:02 - Examples in Python Shell

#python #data-science #machine-learning #developer

Python Magic Methods | Differences between __str__ to __repr__
11.65 GEEK