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're wrong, they're taking every letter in the alphabet it test it against s, if the letter is not in s, which mean it's not a pangram, which mean it would return False and the code ends there. However, if we iterate through the whole alphabet with every letter in s, the loops finish and it return True.
This means I'm less than a noob.
Thanks @Tabby_John!
You understood my question here, and you're absolutely right.
Now it makes sense.
Literally the point of the Kata, no?
I read somewhere that the return command exits the whole function. This means that the loop wouldn't be repeated since it is no longer running the function where the loop is in.
Edit: fixed some grammar and punctuation errors
Great! Thanks guys!
PS.: Forgot to mention I'm on Python 3.X
If we replace devision'/' to floor division '//', it will work as the floor division gets the integer quotient.
The tests should test for non-pangrams as well, as some of the presented codes return incorrect outputs if tested.
Well, I tested this one here and it passes the tests, though it only works IF YOU ARE TESTING A PANGRAM.
If the string you're testing is not a pangram, it will return more results than necessary.
Let's say your string is 'abc'. It will return a false for each letter in the alphabet that is not in 'abc', and then at the end, it will return a True anyway.
Anyone please tell me if I'm wrong.
This comment is hidden because it contains spoiler information about the solution
If I copy/paste this code to the editor, it returns an error due to the division by 2.
It turns the index to a float value whilst it only works for integers.
If anyone could explain how to make this work, please.