phone2numeric
Convert a phone number with letters into its numeric equivalent.
def phone2numeric(
phone: string
) - > string
Convert a phone number with letters into its numeric equivalent.
Parameters
| Name | Type | Description |
|---|---|---|
| phone | string | The phone number string containing letters to be converted into their corresponding keypad digits. |
Returns
| Type | Description |
|---|---|
string | The numeric representation of the phone number, where letters are replaced by digits and non-alphabetic characters remain unchanged. |