0

Phone number validation in sololearn .my code in description , please solve the code ,why i am getting an error

import re #your code goes here num=(input()) regex=r"^1|8|9 \d{8}

quot; if re.search(regex,num): print ("Valid") else: print ("Invalid")

12th Dec 2020, 2:41 AM
Anupam Kayal
Anupam Kayal - avatar
1 Answer
12th Dec 2020, 6:48 AM
AKSHAY🇼🇳
AKSHAY🇼🇳 - avatar