/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
- 1 vote197 views1 answer
- 0 vote204 views1 answer
- 9 votes185 views1 answer
- 3 votes190 views6 answers
- 0 vote211 views1 answer
- 0 vote193 views1 answer
- 0 vote257 views1 answer
- 1 vote275 views1 answer
- 0 vote242 views1 answer
- 0 vote204 views1 answer