/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
- 3 votes105 views1 answer
- 6 votes122 views4 answers
- 0 vote152 views1 answer
- 4 votes126 views1 answer
- 2 votes108 views1 answer
- 12 votes123 views1 answer
- 0 vote115 views1 answer
- 1 vote145 views2 answers
- 0 vote91 views12 answers
- 22 votes98 views2 answers