Invalid syntax on simple code string

def get_traveler_location(traveler): invalid syntax python
why does it give invalid syntax in this code? seems perfectly fine to me.

Is that all the code? (is there any above it?)

Please post all your formatted code.