/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 votes303 views2 answers
- 0 vote310 views2 answers
- 0 vote357 views1 answer
- 1 vote302 views1 answer
- 2 votes306 views2 answers
- 0 vote296 views1 answer
- 0 vote308 views1 answer
- 0 vote311 views1 answer
- 0 vote308 views1 answer
- 3 votes325 views1 answer