Python Dunder (Magic) Methods - Python Fundamentals 5.3

preview_player
Показать описание
Ever wondered what the "underscore methods" are in Python? In today's video, you will learn about those dunder methods (aka magic methods) in Python and how they can make your classes and objects much more powerful! In particular, we will take a look at the __init__, __repr__, __eq__, __getitem__, __add__, and __len__ methods.

📕 Links 📕

⚡ Like and Subscribe! ⚡
✅ If you enjoyed the video, make sure to like, share, comment, and subscribe!

⭐ Timeline ⭐
⌚ 00:00 Intro and overview
⌚ 00:26 What are dunder methods?
⌚ 02:16 __repr__
⌚ 04:15 __eq__
⌚ 06:49 __getitem__
⌚ 08:31 __add__
⌚ 10:06 __len__
⌚ 10:59 Summary and outro

⭐ Hashtags ⭐
#FutureProgrammer
#Python
#Programming
Рекомендации по теме
Комментарии
Автор

Wow, this was a great video about d__ methods and I learned a lot thank you!

amartripuraneni
Автор

thanks for the Video appreciate how clear and concise this was, are dunder methods only used when you create a class and also do you need to use dunder methods when you create a class or can you avoid using them. also is the only and handful of dunder methods or are the loads.

srali