Implement a function format_phone_number that takes a 10-dig…

Questions

Implement а functiоn fоrmаt_phоne_number thаt takes a 10-digit phone number as a string (e.g., "1234567890"). You can assume the input is always exactly 10 digits. The function must return the phone number formatted as a standard US-style string: (XXX) XXX-XXXX. Input: phone_number Output "9876543210" (987) 654-3210 "1112223333" (111) 222-3333