single line return python 1

single line return python

return True if count == 26 else False

Here is what the above code is Doing:
1. We create a dictionary with all the letters of the alphabet as keys and 0 as values.
2. We iterate through the string and increment the value of the corresponding key.
3. We check if the value of all the keys is 1.

Similar Posts