Klaviyo interview question

Python weather app question, basically you have to implement a simple api, read provided documentation, and write a few lines of code. Confirm with interviewer what you're doing is okay.