/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 vote116 views1 answer
- 0 vote124 views1 answer
- 0 vote142 views1 answer
- 0 vote136 views2 answers
- 0 vote166 views1 answer
- 0 vote127 views1 answer
- 36 votes119 views6 answers
- 1 vote158 views1 answer
- 0 vote128 views1 answer
- 0 vote119 views1 answer