In Python we care about the behavior of an object more than the type of an object. We say, “if it looks like a duck and walks like a duck, it’s a duck.” This idea is called duck typing.
» Trey Hunner | pythonmorsels.com
In Python we care about the behavior of an object more than the type of an object. We say, “if it looks like a duck and walks like a duck, it’s a duck.” This idea is called duck typing.
» Trey Hunner | pythonmorsels.com