What is duck typing?
Object-oriented programming
Audio flashcard · 0:15Nortren·
What is duck typing?
0:15
Duck typing is the principle that an object's suitability is determined by whether it has the required methods and attributes, not by its class. The name comes from the saying that if it walks like a duck and quacks like a duck, it is a duck. Python embraces duck typing throughout its design.
docs.python.org