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.
Clever, but this code is less readable than if you split it into several functions with explicit names.
Absolutely.
args[0:2] = ...
changes contents of args;args = ...
reassigns local variable.You mean I am dealing with args as a local variable and reassigned it with a new value instead of changing its actual content right?
Because you don't change args in place, you reassign it with the new value.
why it doesn't work when I just say:
args = args[::-1]
I didn't even know about ".get()", thanks for teaching me it!
challenge accepted! (look at my solution)
Very clever
I came up with the same solution in under a minitue. Thank you CodeWars community. This works!
This comment is hidden because it contains spoiler information about the solution
what?!
Thank you!
It's dependent on language. Python is mapped to '$'
Doesn't the question also ask for Pounds and Yen?
Thank you!
Josh
For some reason the formulas are easier to read without PEP spacing. Not that you are wrong.
Loading more items...