Source Code
t= int(input())
import string
prohibited = string.ascii_uppercase[13:]
for i in range (t):
	problem = input()
	check = any(char in problem for item in prohibited)

	if check:
		print ("NO")
	else:
		print("YES")
Copy
Well-indexed? acaard
Python 3
38 ms
4.0 MB
Runtime Error