Created
November 22, 2010 14:17
-
-
Save emres/710029 to your computer and use it in GitHub Desktop.
Python function to check if a given string is a pangram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from string import ascii_lowercase as al | |
def is_pangram(s): | |
return set(al) - set(s.lower()) == set([]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment