Q:

Write a Python function to check whether a string is a pangram or not

0

Write a Python function to check whether a string is a pangram or not. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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')) 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now