/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 vote65 views0 answer
- 16 votes124 views6 answers
- 1 vote106 views1 answer
- 3 votes133 views2 answers
- 1 vote105 views2 answers
- 0 vote95 views1 answer
- 1 vote120 views1 answer
- 0 vote98 views1 answer
- 8 votes139 views2 answers
- 0 vote106 views1 answer