/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
- 10 votes140 views4 answers
- 0 vote183 views1 answer
- -1 vote131 views1 answer
- 1 vote145 views1 answer
- 0 vote188 views1 answer
- 16 votes125 views3 answers
- 0 vote139 views2 answers
- 4 votes176 views1 answer
- 0 vote136 views1 answer
- 0 vote136 views1 answer