https://www.hackerrank.com/challenges/matching-range-of-characters/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen
code:
import re
Regex_Pattern = r'^[a-z][1-9][^a-z][^A-Z][A-Z]' # Do not delete 'r'.
print(str(bool(re.search(Regex_Pattern, input()))).lower())