/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
- 47 votes163 views9 answers
- 1 vote162 views1 answer
- 3 votes144 views1 answer
- 0 vote107 views1 answer
- 2 votes147 views3 answers
- 8 votes147 views1 answer
- 0 vote205 views1 answer
- 0 vote140 views1 answer
- 6 votes116 views1 answer
- 0 vote151 views1 answer