Valid PCED-30-02 Dumps shared by EduDump.com for Helping Passing PCED-30-02 Exam! EduDump.com now offer the newest PCED-30-02 exam dumps, the EduDump.com PCED-30-02 exam questions have been updated and answers have been corrected get the newest EduDump.com PCED-30-02 dumps with Test Engine here:
You are working with city names entered by users. These names may contain inconsistent capitalization and unwanted spaces. To standardize the data, you want to: - Remove any leading or trailing whitespace, and - Capitalize the first letter of each word (e.g., convert "new york" to "New York"). For example: " New york " → "New York" "lOS ANGELES" → "Los Angeles" You are given a variable citythat contains the raw input. Which line of code correctly updates the value of cleaned_cityto apply the required transformation? Select the best answer.
Correct Answer: D
Stripping removes leading and trailing whitespace, and applying title formatting capitalizes the first letter of each word while converting the remaining letters to lowercase, producing the correctly standardized city name.