Regular experession

import phonenumbers

phoneNumber = phonenumbers.parse(’ ‘“+919876543210”’ ')

print (phoneNumber)

3 Likes

Well done keep it up

1 Like

# Program to convert input to

# phonenumber format

import phonenumbers

# Parsing String to Phone number

# Phone number format: (+Countrycode)xxxxxxxxxx

phoneNumber = phonenumbers.parse( "+919876543210" )

# This will print the phone number and

# it's basic details.

print (phoneNumber)

3 Likes

@prabhudevaraj11
Nice explanation, keep the pace up.