Duck Typing in Python

Опубликовано: 15 Январь 2021
на канале: Code with Renan
500
22

Learn what Duck Typing is and how to use it in Python.

"If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck."

Dynamic Typed languages like Python and JavaScript have an interesting characteristic of letting an object respond to a call according to the definitions of methods and attributes it has independently of its type.

This is incredibly handy because it lets you freely define methods and attributes and use them anywhere without a strict structure.


You can also read this content here:
https://renanmf.com/duck-typing-python/

📚 Buy my book Python Fundamentals
https://renanmf.com/python-fundamenta...

🤳Instagram:   / renanmouraf  
🌎 Website: https://renanmf.com/
🐦 Twitter:   / renanmouraf  
📝 LinkedIn:   / renanmouraf  

👍 Please leave a LIKE and SUBSCRIBE for more content! 👍

#️⃣ Hashtags #️⃣
#Python


На этой странице сайта вы можете посмотреть видео онлайн Duck Typing in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Code with Renan 15 Январь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 500 раз и оно понравилось 22 зрителям. Приятного просмотра!