/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 vote327 views1 answer
- 0 vote306 views10 answers
- 5 votes327 views2 answers
- 0 vote348 views1 answer
- 0 vote343 views1 answer
- 0 vote334 views2 answers
- 0 vote364 views1 answer
- 84 votes323 views6 answers
- 0 vote353 views1 answer
- 4 votes356 views1 answer