Getting there - takes "string" as input?


#1

https://www.codecademy.com/courses/learn-python/lessons/taking-a-vacation/exercises/getting-there?action=resume_content_item

Hey all, I tried to find a thread with my particular question but it looks like I’m the only one confused by this.

image

I took this seriously! I wrote city as “city” because I thought it meant making it a string. I had to retrieve the solution before I realised it wasn’t an actual string.

Very new to defining functions and Python in general so misinterpretations were bound to happen, I just don’t understand why it was worded this way.

Any help would be appreciated.

Thanks


#2

You just need to write city as an argument. No quotes or anything


#3

Yeah I realised my mistake, I just didn’t understand the wording in the instructions.

Thanks


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.