Run
import phonenumbers # Phone number in a string phonenumber_string = "+442083661177" # Parse string to a PhoneNumber object x = phonenumbers.parse(phonenumber_string) # Check if the PhoneNumber is a valid number if phonenumbers.is_valid_number(x): print('Given phone number is valid.') else: print('Given phone number is not valid.')
Output