Boredless Tourist Indentation

I am having trouble with the indentation of the Boredless Tourist project. I have tried different variations of the indentaion and it still has not worked. Using the video has not worked. Am I missing something?

can you copy paste your code to the forum? Difficult to see from a screenshot

codecademy’s editor sometimes has trouble with indent, you could re-indent your code locally in your preferable IDE/text-editor.

1 Like

also the code looks all sorts of weird using the “Preformatted text”

1 Like
def get_traveler_location(traveler):
	traveler_destination = traveler[1]
  traveler_destination_index = get_destination_index(traveler_destination)
  return traveler_destination_index
1 Like

screenshot of your code:

image

the first line of your function has indeed an indention issue.

codecademy’s editor sometimes has indention issues, and then you post it on the forum with preformatted text, and you get to see what it truly looks like

1 Like

I used spacing to fix the traveler_destination = traveler[1] and that sorted that issue but then three other issues popped up. I am going to restart and see if that helps.

1 Like

i recommend to fix the issue, don’t start over. Do you have already set up a local IDE/text-editor? Use that to re-indent the code, otherwise try repl

1 Like

I quickly re-wrote all the code and it worked perfectly. Thank you for the help.

1 Like