STEP 1: INSTALL PYCHARM
STEP 2: TYPE " PIP INSTALL PHONENUMBERS " IN TERMINAL
STEP 3: CODE>>
import phonenumbers
from test import number
#to print the location
from phonenumbers import geocoder
c = phonenumbers.parse(number, "CH")
print(geocoder.description_for_number(c, "en"))
#to print the sim
from phonenumbers import carrier
service_nmber= phonenumbers.parse(number, "RO")
print(carrier.name_for_number(service_nmber, "en"))
Comments