/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
- 25 votes149 views2 answers
- 0 vote77 views1 answer
- 0 vote100 views1 answer
- 0 vote80 views1 answer
- 26 votes81 views1 answer
- 2 votes91 views1 answer
- 0 vote96 views1 answer
- 0 vote83 views1 answer
- 18 votes93 views6 answers
- 1 vote81 views1 answer