/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 vote257 views4 answers
- 3 votes276 views2 answers
- 2 votes205 views6 answers
- 1 vote213 views1 answer
- 68 votes191 views6 answers
- 0 vote240 views1 answer
- 0 vote306 views1 answer
- 16 votes200 views6 answers
- 0 vote197 views1 answer
- 0 vote157 views1 answer