/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
- 3 votes365 views1 answer
- 0 vote366 views1 answer
- 0 vote355 views1 answer
- 0 vote344 views1 answer
- 0 vote338 views1 answer
- 0 vote363 views1 answer
- 0 vote416 views2 answers
- 11 votes361 views3 answers
- 0 vote341 views1 answer
- 0 vote329 views1 answer