Coding with Stings

Code from Class

Homework: Write a function to take a phone number and display the number's area code, exchange, local number, and full number appropriately formatted. For example,

>>> phone(8645974529)
Area code: 864
Exchange: 597
Local number: 597-4529
Full number: (864) 597-4529

Notice that this is a function that takes a number as an argument and manipulates it as a string.