/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 vote262 views2 answers
- -1 vote263 views1 answer
- 1 vote288 views1 answer
- 0 vote303 views1 answer
- 4 votes233 views1 answer
- 0 vote277 views1 answer
- 56 votes300 views6 answers
- 1 vote315 views1 answer
- 0 vote339 views1 answer
- 1 vote278 views1 answer