def solve(self, cipher):
        bucket = [False for _ in xrange(26)]
        for char in cipher:
            char = char.lower()
            ind = ord(char) - ord('a')
            try:
                bucket[ind] = True
            except IndexError:
                pass

        is_pangram = all(bucket)
        if is_pangram:
            return "pangram"
        else:
            return "not pangram"
Algorithm:
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Pangrams.py/Solution.solve