/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
- 3 votes262 views1 answer
- 1 vote242 views2 answers
- 7 votes233 views1 answer
- 0 vote252 views1 answer
- 4 votes263 views1 answer
- 0 vote257 views1 answer
- 0 vote264 views1 answer
- 3 votes246 views1 answer
- 0 vote261 views1 answer
- 20 votes260 views3 answers