programming-examples/python/Function/Python function to check whether a string is a pangram or not.py

6 lines
227 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import string, sys
def ispangram(str1, alphabet=string.ascii_lowercase):
alphaset = set(alphabet)
return alphaset <= set(str1.lower())
print ( ispangram('The quick brown fox jumps over the lazy dog'))