Phone Number Formatting
Create a function that takes a list of 10 numbers (between 0 and 9) and returns a string of those numbers formatted as a phone number (e.g. (555) 555-5555).
Examples
<br>format_phone_number([1, 2, 3, 4, 5, 6, 7, 8, 9, 0])<br>output = "(123) 456-7890"<br><br>format_phone_number([5, 1, 9, 5, 5, 5, 4, 4, 6, 8])<br>output = "(519) 555-4468"<br><br>format_phone_number([3, 4, 5, 5, 0, 1, 2, 5, 2, 7])<br>output = "(345) 501-2527"<br>
Notes
Don’t forget the space after the closing parenthesis.