@virnuls/

Pangrams

Python

One of the OCR Coding Challenges

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
text = input("Please enter a phrase or sentence: ").upper()

pangram = "is"
i = 65
while i < 91 and pangram == "is":
  if text.find(chr(i)) < 0:
    pangram = "isn't"
  i += 1

print("That",pangram,"a pangram.")