/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
- 31 votes285 views6 answers
- 1 vote360 views1 answer
- 17 votes274 views4 answers
- 0 vote288 views1 answer
- 0 vote304 views2 answers
- 0 vote278 views2 answers
- 68 votes289 views4 answers
- 0 vote286 views1 answer
- 0 vote308 views1 answer
- 20 votes300 views4 answers