Light Mode
Dark Mode
Newbie asking

I think this is a syntax error, but I am totally lost on using regular expression. Please help me find out where I made the mistake. The following is my code:

import re

def checkio(data: str) -> bool:

if re.match("[0-9]",data) and re.match("[a-z]",data) and re.match("[A-Z]",data):

    if len(data)>9:
        return True
return False

Thanks.

Created: Feb. 12, 2019, 2:22 a.m.
Updated: Feb. 12, 2019, 2:46 a.m.
0
1
User avatar
will123song