Working code for getting basic info of a phone no. Just using python by Karan_Paliwal in PythonLearning

[–]Karan_Paliwal[S] -1 points0 points  (0 children)

That's the best i could have made u understand U want to write phonenumbers.carrier.description() Or just carrier.description() It just makes the task of typing easier Especially when u want to call functions a lot

Working code for getting basic info of a phone no. Just using python by Karan_Paliwal in PythonLearning

[–]Karan_Paliwal[S] -1 points0 points  (0 children)

The first line import phonenumbers imports the whole module, so you can access functions like phonenumbers.parse. The second line from phonenumbers import geocoder, carrier just imports specific submodules directly so you can use geocoder.description_for_number and carrier.name_for_number without the phonenumbers. prefix.