/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 vote183 views2 answers
- 0 vote166 views1 answer
- 0 vote191 views1 answer
- 0 vote180 views1 answer
- 1 vote157 views1 answer
- 0 vote164 views1 answer
- 0 vote172 views1 answer
- 2 votes164 views1 answer
- 0 vote169 views1 answer
- 0 vote165 views1 answer