Python program to check if the entered string is pangram or not using function.
#Python program to check if the entered string is pangram or not using function.
from string import ascii_lowercase
sentence=input("Enter a string to check if its pangram:").lower()
def pangram(sentence):
if set(ascii_lowercase).issubset(sentence):
print("Entered string is pangram.")
else:
print("Entered string is not pangram.")
pangram(sentence)
from string import ascii_lowercase
sentence=input("Enter a string to check if its pangram:").lower()
def pangram(sentence):
if set(ascii_lowercase).issubset(sentence):
print("Entered string is pangram.")
else:
print("Entered string is not pangram.")
pangram(sentence)
Comments
Post a Comment