/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 votes341 views6 answers
- 1 vote305 views1 answer
- -1 vote301 views3 answers
- 0 vote293 views2 answers
- 0 vote301 views1 answer
- 0 vote282 views1 answer
- 23 votes324 views5 answers
- 0 vote314 views1 answer
- 0 vote328 views1 answer
- 31 votes297 views6 answers