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.
also the code looks all sorts of weird using the “Preformatted text”
def get_traveler_location(traveler): traveler_destination = traveler traveler_destination_index = get_destination_index(traveler_destination) return traveler_destination_index
screenshot of your code:
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
I used spacing to fix the traveler_destination = traveler and that sorted that issue but then three other issues popped up. I am going to restart and see if that helps.
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
I quickly re-wrote all the code and it worked perfectly. Thank you for the help.