Skip to content

Commit

Permalink
Merge pull request #49 from ankitraj7994/master
Browse files Browse the repository at this point in the history
Panagram.py added
  • Loading branch information
ambujraj authored Oct 1, 2018
2 parents 2ccd81c + b41c598 commit 1977d4d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pangram/pangram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import string

def isPangram(s):
s = s.lower()
for i in string.ascii_lowercase:
if not i in s:
return False
return True

def main():
s = input("Enter string: ")
if isPangram(s):
print("Yes! It's a pangram.")
else:
print("No! It's not a pangram.")

if __name__ == '__main__':
main()

0 comments on commit 1977d4d

Please sign in to comment.