In this quiz, you’ll test your understanding of
Duck Typing in Python: Writing Flexible and Decoupled Code.
By working through this quiz, you’ll revisit what duck typing is and its pros and cons, how Python uses behavior-based interfaces, how protocols and special methods support it, and what alternatives you can use in Python.
realpython.com
realpython.com
