/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 vote163 views1 answer
- 0 vote154 views1 answer
- 0 vote160 views1 answer
- 0 vote149 views1 answer
- 1 vote176 views1 answer
- 2 votes187 views1 answer
- 21 votes159 views4 answers
- -1 vote185 views1 answer
- 9 votes156 views3 answers
- 1 vote194 views1 answer