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)

Comments

Popular posts from this blog

Python program to calculate age and year when user will be 100 years old

Python program to print numbers less than 5 from the list.