/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
- 34 votes245 views3 answers
- 7 votes268 views3 answers
- 1 vote267 views4 answers
- 15 votes260 views2 answers
- 0 vote261 views1 answer
- 0 vote261 views1 answer
- -1 vote271 views1 answer
- 0 vote262 views4 answers
- 0 vote361 views1 answer
- 0 vote296 views1 answer