We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# The English alphabet
alpha = "abcdefghijklmnopqrstvwxyz"
# Convert the input string to lowercase and to a set to remove duplicates
s = set(s.lower())
# Returns 'True' only incase ALL English alphabetical letters included in the string.
if all(char in s for char in alpha):
return 'pangram'
else:
return 'not pangram'
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
def pangrams(s):