/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 vote199 views1 answer
- 1 vote194 views1 answer
- 0 vote195 views1 answer
- 1 vote229 views1 answer
- 0 vote209 views1 answer
- 0 vote202 views1 answer
- 1 vote189 views1 answer
- -1 vote184 views2 answers
- 3 votes180 views1 answer
- 2 votes197 views1 answer