What is duck typing in Python?
Correct answer
C. Using an object based on its behaviour rather than its type
11 views
C. Using an object based on its behaviour rather than its type
11 views
If it walks like a duck and quacks like a duck, it is treated as a duck.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is C? Ask here and get an explanation.