/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 vote188 views1 answer
- 0 vote235 views1 answer
- 0 vote224 views1 answer
- 4 votes206 views1 answer
- 0 vote248 views1 answer
- 1 vote229 views1 answer
- 0 vote274 views1 answer
- 0 vote224 views2 answers
- 7 votes230 views4 answers
- 1 vote242 views1 answer