/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
- 14 votes131 views2 answers
- 0 vote131 views1 answer
- 0 vote153 views1 answer
- 2 votes140 views6 answers
- 0 vote163 views1 answer
- 0 vote165 views1 answer
- 0 vote209 views1 answer
- 0 vote124 views1 answer
- 0 vote135 views1 answer
- 0 vote139 views1 answer