/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
- 0 vote131 views1 answer
- 3 votes135 views1 answer
- 0 vote141 views1 answer
- 1 vote164 views1 answer
- -1 vote127 views3 answers
- 0 vote160 views1 answer
- 0 vote148 views1 answer
- 0 vote147 views1 answer
- -1 vote130 views1 answer
- 2 votes167 views1 answer