/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 vote141 views1 answer
- 0 vote146 views1 answer
- 0 vote136 views1 answer
- 3 votes133 views2 answers
- 6 votes137 views1 answer
- 1 vote144 views2 answers
- 1 vote140 views1 answer
- 1 vote155 views1 answer
- 2 votes147 views1 answer
- 1 vote128 views1 answer