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