Pangrams @ Dcoder

Words
86
Reading
1 min
Listen
Play
3y

Problem: A word or a sentence is called a pangram if all the characters of this language appear in it at least once, either in lowercase or in uppercase. You are given a string S consisting of lowercase and uppercase English letters. If the string is a pangram, print "YES" else print "NO", without the double quotes.
Input: A single string S.
Output: Print "YES", if the string is a pangram, else print "NO".
Constraints: 1 ≤ S.length ≤ 100
Sample Input: QuickWaftingZephyrsVexBoldJim
Sample Output:
YES
Link

from string import ascii_uppercase
s = input().upper()
pangram = 'YES'
for ch in ascii_uppercase:
  if ch not in s:
    pangram = 'NO'
    break
print(pangram)
Pangrams @ Dcoder | Ecency