formate a phonenumber in phonenumber package with phonenumberformat

Solutions on MaxInterview for formate a phonenumber in phonenumber package with phonenumberformat by the best coders in the world

showing results for - "formate a phonenumber in phonenumber package with phonenumberformat"
Malena
06 Aug 2019
1>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.NATIONAL)
2'020 8366 1177'
3>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.INTERNATIONAL)
4'+44 20 8366 1177'
5>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.E164)
6'+442083661177'
7