/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
- 3 votes128 views2 answers
- 2 votes146 views4 answers
- 1 vote150 views1 answer
- 0 vote207 views1 answer
- 52 votes142 views6 answers
- 3 votes170 views2 answers
- 0 vote133 views1 answer
- 1 vote135 views1 answer
- 0 vote146 views1 answer
- 0 vote137 views2 answers