/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 vote112 views1 answer
- 6 votes174 views4 answers
- 5 votes112 views2 answers
- 34 votes152 views6 answers
- 0 vote127 views1 answer
- 8 votes110 views4 answers
- 0 vote124 views1 answer
- 0 vote109 views1 answer
- 0 vote133 views1 answer
- 61 votes111 views3 answers