given a string check whether it is a panagram or not a panagram is a sentence that uses every letter at least once the most famous example is he quick brown fox jumps over the lazy dog note a panagram in one language isn t necessarily a panagram in another this module assumes the english language hence the finnish panagram trkylempijvongahdus won t pass for a panagram despite being considered a perfect panagram in its language however the swedish panagram yxmrdaren julia blomqvist p fktning i schweiz will pass despite including letters not used in the english alphabet this is because the swedish alphabet only extends the latin one returns whether the input string is an english panagram or not parameters string str a sentence in the form of a string returns a boolean with the result returns whether the input string is an english panagram or not parameters string str a sentence in the form of a string returns a boolean with the result
from string import ascii_lowercase

def panagram(string):
    
    letters = set(ascii_lowercase)
    for c in string:
        try:
            letters.remove(c.lower())
        except:
            pass
    return len(letters) == 0