How does Python support polymorphism?
Reveal the answer and explore the explanation.
05MediumHigh priorityHow does Python support polymorphism?
Answer
MediumHigh priority
How does Python support polymorphism?
Answer
Different objects can expose a compatible interface, often through duck typing, and be used interchangeably.
Practical example
Call predict on compatible sklearn estimators.
Reference: Further reading ↗