/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 vote309 views1 answer
- 1 vote251 views1 answer
- 0 vote339 views1 answer
- 0 vote349 views1 answer
- 0 vote305 views1 answer
- 12 votes322 views1 answer
- 0 vote315 views1 answer
- 0 vote308 views1 answer
- 0 vote312 views1 answer
- 67 votes320 views4 answers