/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
- 5 votes331 views1 answer
- 0 vote323 views1 answer
- 1 vote342 views2 answers
- 0 vote339 views1 answer
- 3 votes391 views2 answers
- 0 vote314 views1 answer
- 11 votes343 views4 answers
- 0 vote349 views1 answer
- 0 vote410 views1 answer
- 22 votes389 views4 answers