/Python/Import re #your code goes here number=input() pattern=r"(1|8|9)[0-9]+" match=re.match(pattern,number) of lane(number)==8: if(match): print("value") else: print("invalid") else print("invalid")
Import re #your code goes here number=input() pattern=r"(1|8|9)[0-9]+" match=re.match(pattern,number) of lane(number)==8: if(match): print("value") else: print("invalid") else print("invalid")
Import re #your code goes here number=input() pattern=r"(1|8|9)[0-9]+" match=re.match(pattern,number) of lane(number)==8: if(match): print("value") else: print("invalid") else print("invalid")
0
- 1 vote164 views1 answer
- 2 votes169 views1 answer
- 0 vote185 views1 answer
- 0 vote160 views1 answer
- 0 vote179 views2 answers
- 0 vote172 views1 answer
- 0 vote158 views1 answer
- -1 vote160 views1 answer
- 0 vote176 views2 answers
- 4 votes175 views1 answer