/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 vote208 views1 answer
- 3 votes186 views3 answers
- 0 vote198 views1 answer
- 35 votes281 views2 answers
- 0 vote196 views1 answer
- 13 votes214 views2 answers
- 20 votes197 views4 answers
- 0 vote214 views1 answer
- 0 vote230 views1 answer
- 21 votes205 views6 answers