Skip to content

Instantly share code, notes, and snippets.

@Marlysson
Last active December 9, 2016 05:05
Show Gist options
  • Save Marlysson/9ee59f3aa272f8bc99097e4d97c19b1e to your computer and use it in GitHub Desktop.
Save Marlysson/9ee59f3aa272f8bc99097e4d97c19b1e to your computer and use it in GitHub Desktop.
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