i have this error when i write python3 script.py in the bash :
in he project : the bordeless tourist python
$ python3 script.py
** File “script.py”, line 6**
** def get_destination_index(destination):**
** ^**
SyntaxError: invalid syntax
destinations = ['Paris, France', 'Shanghai, China', 'Los Angeles, USA', 'São Paulo, Brazil', 'Cairo, Egypt']
test_traveler = [['Erin Wilkes', 'Shanghai, China', ['historical site', 'art']]
def get_destination_index(destination):
destination_index = destinations.index(destination)
return destination_index
print(get_destination_index("Los Angeles, USA"))