/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
- 14 votes269 views2 answers
- 0 vote250 views1 answer
- 0 vote291 views1 answer
- 0 vote269 views1 answer
- 1 vote267 views5 answers
- 9 votes294 views6 answers
- 5 votes271 views3 answers
- 16 votes274 views3 answers
- 0 vote237 views1 answer
- 0 vote261 views1 answer