• + 4 comments

    what is set("abcdefghijklmnopqrstuvwxyz")) == 26 supposed to do? I did it through set too like this.

    import string
    s = raw_input().strip().lower()
    for i in string.whitespace + string.punctuation:
    	if i in s:
    		s = s.replace(i, '')
    if len(set(s)) == 26:
    	print "pangram"
    else:
    	print "not pangram"