3 ms·
Python has strong typing, but it does use duck typing. Weak typing is when a language inserts implicit coercions in unexpected places, such as 42 == “42”. It’s
by zarzavat 4y ago
Python has strong typing, but it does use duck typing.
Weak typing is when a language inserts implicit coercions in unexpected places, such as 42 == “42”. It’s not a precisely defined term. Another example is in C where pointers and values may be mixed and matched, although less so nowadays.