Python uses duck typing, which means that the type or class of an object is determined by its behavior (methods and properties) rather than its inheritance. If an object behaves like a duck, it’s ...