+ 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

2nd Apr 2022, 5:04 PM
LAWRENCE A. KPAINAY
1 ответ
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
2nd Apr 2022, 5:18 PM
Simon Sauter
Simon Sauter - avatar