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.
defpangrams(s):# Convert string to lowercase once and create a set of charactersseen_letters=set(cforcins.lower()ifc.isalpha())# Check if the set contains all the letters of the alphabetis_pangram=len(seen_letters)==26return'pangram'ifis_pangramelse'notpangram'
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 →
solution in python: