For some reason this function confused me:
def protocol(port): return port == \"443\" and \"https://\" or \"http://\"
Can somebody expl
You may want to read up on the "and / or trick" of Python in this article The Peculiar Nature of And and Or in Python. It's a bit like the IIF() in VBA or VB, or ?: in C-style languages.
IIF()
?: