Same. I don't want to go run python code to play your little quiz game, sorry.
I think the article would be better structured as an explanation of what a connection is, its 5-tuple, and then a dive into any surprising exceptions to the rule that there can be no ambiguity in where a packet is delivered, it must go to exactly one spot on a host. So as long as you can find an unambiguous subset of available 5-tuples, you're allowed to bind/connect.