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.
s=raw_input()
l=len(s)
if l>=1 and l<=1000:
sen=list(s)
a=list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
f=0
c=0
for i in range(52):
for j in range(l):
if a[i]==sen[j]:
f=1
elif a[i]!=sen[j]:
c=1
if f==1 and c==0:
print "pangram"
elif c==1:
print "not pangram"
wats wrong in my code ??? my test case 0 is faling
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 →
s=raw_input() l=len(s) if l>=1 and l<=1000: sen=list(s) a=list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') f=0 c=0 for i in range(52): for j in range(l): if a[i]==sen[j]: f=1 elif a[i]!=sen[j]: c=1 if f==1 and c==0: print "pangram" elif c==1: print "not pangram" wats wrong in my code ??? my test case 0 is faling