/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 vote168 views1 answer
- 6 votes204 views6 answers
- 2 votes169 views1 answer
- 2 votes184 views3 answers
- 0 vote214 views1 answer
- 2 votes172 views2 answers
- 1 vote173 views2 answers
- 1 vote164 views2 answers
- 2 votes178 views1 answer
- 1 vote169 views1 answer