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.
My code seems to try to return 'nil' in all the right cases but "NameError: global name 'nil' is not defined" is generated. Not sure what to do about it.
OK. I can see your comment now. I will refactor the solution. Thanks.
Why doesn't the system let me see the solutions by other members? It does show my solution as valid in "My solutions". It's been about 18 hours now since I posted it.
I completed the kata and sent the solution out but the system still says: "Since you have not yet solved this kata we have hidden the solutions from you..."
Do I have to return a table as the example shows?
Hi, thanks for answering. I had a bunch of tuples as my output. The system disregarded all tuples but the first one which "sent me a confusing message" I was wrong with letter counts. After I stuffed all tuples into one list the system got happy. Thanks again. Everything is fine now.
The solution in my 2.7 console returns all five tuples for, say, 'abracadabra', but basic test returns just the first one. I am puzzled.
Thank you, Chrono79. It did resolve the issue.
I am having the same issue working in Python 2.7 as "thesamas" 9 months ago:
"Test Results:
Log
10 + 2
None should equal '10 + 2'
Can anyone let me know how this is wrong?"
And every element ('10', '+', '2') is a string.