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.
Came to say that, hyper clever really.
What a great tip! Thanks man!
Yes, both good suggestions! Thank you.
I agree. Also you could move the dict outside the function, so the dict wouldn't be created every function call.
Less readable and slower.
I think he means that instead of typing the alphabet yourself as a variable, use the already builtin one to avoid unnecessary errors ( which lead to bad code). I think!
I'm sorry but what is a magic number, and why are strings the experts of bad codes?
This comment is hidden because it contains spoiler information about the solution
Seriously not trying to be a smart aleck here. It seems like you've just improved an inefficient approach. You're level 3 so beyond me python-wise. What made you choose this approach over ord()?
Maybe because it's truncating, not rounding?
But it's less readable.
100%
import everything
print('^^')
No big advantages I think. You may change to "elif" if you think that is clearer. I use consecutive "if"s just because I think that is neater.
it's longer but it's better: isinstance takes care of inheritance of the iputs. Not type.
Loading more items...