/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
- 9 votes166 views3 answers
- 0 vote183 views1 answer
- 6 votes174 views5 answers
- 5 votes174 views6 answers
- 9 votes171 views5 answers
- 0 vote183 views1 answer
- 40 votes265 views6 answers
- 4 votes174 views3 answers
- 7 votes170 views2 answers
- -1 vote178 views2 answers