-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from ankitraj7994/master
Panagram.py added
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |