Write a python program for read phone number
# Program to convert input to
# phonenumber format
import phonenumbers
# Parsing String to Phone number
# Phone number format: (+Countrycode)xxxxxxxxxx
number = input("Type your phone number: ")
phoneNumber = phonenumbers.parse(number)
# This will print the phone number and
# it's basic details.
print(phoneNumber)
Comments
Leave a comment