PY
py
1
2
3
4
5
6
7
8
import re
pattern=r"[^A-Z]"
if re.search(pattern, "THIS IS A SHOUT"):
print("Match 1")
"""
But why when I do the same in IDLE
it writes "SyntaxError: multiple statement found while compiling a single statement"
"""
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run