/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
- 1 vote235 views1 answer
- 0 vote186 views1 answer
- 0 vote217 views1 answer
- 0 vote188 views1 answer
- 12 votes206 views2 answers
- 0 vote234 views1 answer
- -2 votes176 views4 answers
- 9 votes239 views2 answers
- 46 votes225 views4 answers
- 1 vote244 views1 answer