/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
- 2 votes273 views1 answer
- 4 votes236 views3 answers
- 0 vote242 views1 answer
- 43 votes269 views6 answers
- 0 vote246 views1 answer
- 0 vote223 views1 answer
- 25 votes237 views2 answers
- 0 vote225 views1 answer
- 0 vote215 views2 answers
- 3 votes235 views1 answer