/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
- 1 vote215 views1 answer
- 0 vote199 views1 answer
- 0 vote200 views1 answer
- 4 votes200 views3 answers
- 0 vote219 views1 answer
- 0 vote197 views1 answer
- 0 vote197 views2 answers
- 0 vote232 views1 answer
- 1 vote201 views1 answer
- 0 vote220 views1 answer