I am working on #11 in the project here:
I’m trying to figure out what argument I should put in my .index() function to find the index location of my pararementer. I’m not sure what I should put here, if it’s a number, variable, parameter, etc? I’m having trouble grasping the concept of this.
Here is my current code:
destinations = ["Paris, France", "Shanghai, China", "Los Angeles, USA", "Sao Paulo, Brazil", "Cairo, Egypt"] test_travelar = ['Erin Wilkes', 'Shanghai, China', ['historical site', 'art']] def get_destination_index(destination): index_of_dest = destination.index() return index_of_dest get_destination_index("Los Angeles, USA") print(get_destination_index)