My Python project has the ability to perform operations on two different destinations, let's call them SF and LA. Which is the better way to accomplish this?
Option A:
destinations.py
LA = 1
SF = 2
example_operation.py
import destinations
run_operation(destination=destinations.LA)
def run_operation(destination):
    assert destination in [destinations.LA, destinations.SF]
    ...
OR
Option B:
example_operation.py
run_operation(destination='LA')
def run_operation(destination):
    assert destination in ['LA', 'SF']
    ...
I realize I can also use a dictionary or many other methods to accomplish this. I'd like to know which is the best practice for declaring and validating these.
 
    