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.
cSet = {chr(c) for c in range(97,123)}
pangram = "not pangram"
for c in s:
cSet.discard(c.lower())
if not cSet:
pangram = "pangram"
break
print(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 →
cSet = {chr(c) for c in range(97,123)} pangram = "not pangram" for c in s: cSet.discard(c.lower()) if not cSet: pangram = "pangram" break print(pangram)