+ 2
How to verify a phone number with python
I've spent days tryna solve the phone number verification project in the python core course. I've tried everything I understand about regular expressions. Need some help, anyone. Please. I have insert a very of the codes I've used so far. They all seem to fail on test case 3 https://code.sololearn.com/cROE8lSTrWGD/?ref=app
1 Odpowiedź
0
- it has to start with 1, 8, or 9, i.e. there may be nothing before that
- it has to be exactly eight digits long
- it can only contain digits, so you can't use ".", "-" is not allowed either