/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 vote170 views1 answer
- 0 vote156 views1 answer
- 0 vote188 views2 answers
- 0 vote146 views1 answer
- 9 votes170 views2 answers
- 1 vote172 views1 answer
- 122 votes149 views6 answers
- 0 vote157 views1 answer
- 0 vote161 views1 answer
- 26 votes147 views6 answers