Last active
December 9, 2016 05:05
-
-
Save Marlysson/9ee59f3aa272f8bc99097e4d97c19b1e to your computer and use it in GitHub Desktop.
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
from string import ascii_lowercase as lower_letters | |
input_text = str(input()).lower() | |
def to_string_ordered(string): | |
new_string = string.replace(" ","") | |
new_string = list(set(new_string)) | |
new_string.sort() | |
new_string = "".join(new_string) | |
return new_string | |
if to_string_ordered(input_text) == lower_letters: | |
print("pangram") | |
else: | |
print("not pangram") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment