Some observations:
- you (probably) use Python 2. I suggest to switch to Python 3. Python 2 is EOL at the end of this year
- as stated in error - there should be no intent. Return statement must be on same level as previous row (row #4).
- you have statement 'print len', assuming that this is Python 2 it works but output will be
- Python intentation is 4 spaces
- if you need permutations then have a look at built-in module itertools and function defined there itertools.permutations(). There is code provided how permutations function (roughly) works.
- you (probably) use Python 2. I suggest to switch to Python 3. Python 2 is EOL at the end of this year
- as stated in error - there should be no intent. Return statement must be on same level as previous row (row #4).
- you have statement 'print len', assuming that this is Python 2 it works but output will be
<built-in function len>
. Is it what you want?- Python intentation is 4 spaces
- if you need permutations then have a look at built-in module itertools and function defined there itertools.permutations(). There is code provided how permutations function (roughly) works.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.