/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
- 2 votes155 views1 answer
- 2 votes167 views1 answer
- 115 votes215 views6 answers
- 4 votes176 views1 answer
- -3 votes182 views5 answers
- 14 votes167 views2 answers
- 1 vote174 views1 answer
- 0 vote215 views1 answer
- 3 votes161 views1 answer
- 0 vote249 views1 answer