0
Help me figuring out this python code function find attraction which doesn't seem to work.
The thing is function find_attraction is not giving any out put. I tried debugging it with printing each line still no output. Furthermore I tried to let's say print hi inside that function still no output. What's wrong with that function? I have attached my full code bit. https://code.sololearn.com/cj80IKZR85d7/?ref=app
2 odpowiedzi
+ 2
last two lines of your code are indented, so inside find_attraction function after return statement...
so find_attraction is never called: you must unindent them:
la_arts = find_attractions("Los Angeles, USA", ['art'])
print(la_carts)
+ 1
visph Thanks a bunch it was such a minor mistake and I didn't even realise(was going through logic , spellings and all) ......... Will need to be more careful with indentation in future btw any tips for that?