/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 vote278 views2 answers
- 0 vote230 views1 answer
- 0 vote203 views1 answer
- 1 vote224 views1 answer
- 2 votes212 views1 answer
- 0 vote256 views1 answer
- 1 vote212 views2 answers
- 0 vote215 views2 answers
- 1 vote269 views1 answer
- 0 vote211 views1 answer