in the boredless tourist project task 34, when i try printing “add_attraction”, it shows me this
“<function add_attraction at 0x7f8843cc8950>”
instead of printing out the list.
here is my function:
def add_attraction(destination, attraction): try: destination_index = get_destination_index(destination) attractions_for_destination = attractions[destination_index].append(attraction) except SyntaxError: return add_attraction("Los Angeles, USA", ['Venice Beach', ['beach']])
i can’t find the bug in the code.
and thanks in advance!