/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 vote130 views1 answer
- 0 vote98 views1 answer
- 0 vote111 views1 answer
- 1 vote111 views1 answer
- -1 vote67 views1 answer
- 15 votes120 views2 answers
- 0 vote110 views1 answer
- 0 vote111 views1 answer
- 1 vote105 views2 answers
- 0 vote103 views1 answer