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 got me, no joke
it seems like if there's a real large string, it's gonna have to fully convert it to upper case and compare. i guess a for loop with an early return false (in case a char is lowercase) would be the best practice in terms of performance
you told already what i was thinking to say. well done. 👏
alright i'm sorry
Hi Sara,
I would suggest you to try to run the code. The module operator (%) return the reminder in the division between the first and the second number. 6 divided by 2 is 3 with 0 as remainder, so in this code would be select the first item in the tuple, "Even", that is correct. Your version is easier to understand and more suitable for python, but the code written by graf_da still works.
if i enter "6", your code will throw KeyError because 6 % 2 == 2. so i'd rather do
that's genius
This comment is hidden because it contains spoiler information about the solution
just for lulz
why did you name the argument $?
agree