Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You actually can assign a function to variable https://www.geeksforgeeks.org/assign-function-to-a-variable-in-python/ , however you can't assign a function DEFINITION to variable. But once again im saying this is not my code where the error occurs, error lies in the test cases.
You can't assign function to a variable, you can call a function and store its return to a vaiable but not declare the function in the variable it self.
Went into comments just to say that, thanks dude for doing the work for me.
This comment is hidden because it contains spoiler information about the solution
no, you should look up how to define a function in python again: there is absolutely no way, that your
def
is at the beginning of the line when you havemaze =
just in front of it... ;)Hi,
my
def
is in fact at the very beginning of the line, I've marked this as an issue, beacouse I think there is a problem withtest.py
test file, not my solution, and not something I could change.Hi,
not an issue. Issues are for problems in the code of the kata. Here, your code is using invalid syntax => that's a "Question".
about that problem of yours: when used,
def
has to be at the very beginning of the line (according to the current indentation level)Cheers
I am getting this error, and I am almost sure this is not my bad, any ideas?