/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 vote357 views3 answers
- 0 vote335 views1 answer
- 0 vote310 views1 answer
- 0 vote344 views1 answer
- 2 votes300 views1 answer
- 0 vote339 views1 answer
- 14 votes353 views1 answer
- 0 vote321 views1 answer
- 2 votes356 views2 answers
- 0 vote365 views1 answer