/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
- 7 votes158 views5 answers
- 0 vote161 views1 answer
- 33 votes149 views6 answers
- 3 votes206 views2 answers
- 0 vote157 views1 answer
- 9 votes156 views4 answers
- 0 vote174 views2 answers
- 33 votes169 views4 answers
- 1 vote147 views1 answer
- 5 votes158 views1 answer