/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
- 4 votes227 views1 answer
- 0 vote231 views1 answer
- 11 votes242 views3 answers
- 7 votes238 views3 answers
- 0 vote245 views1 answer
- 1 vote233 views1 answer
- 0 vote223 views1 answer
- 35 votes262 views6 answers
- 0 vote263 views1 answer
- 0 vote251 views2 answers