When checking for equality, is there any actual difference between speed and functionality of the following:
number = \'one\' if number == \'one\' or number
Talking about functionality - no, these two approaches generally differ: see https://stackoverflow.com/a/41957167/747744