• + 0 comments
    def pangrams(s):
        for i in range(97,123):
            if chr(i) not in s.lower():
                return 'not pangram'
        return 'pangram'
    

    or

    def pangrams(s):
        return 'pangram' if len(set(s.lower()+' '))==27 else 'not pangram'
    

    or

    def pangrams(s):
        h='abcdefghijklmnopqrstuvwxyz'
        for i in h:
            if i not in s.lower():
                return 'not pangram'
        return 'pangram'