Question: The coding language is Python. 5. [8] Complete the following function to perform as described: def weatherStr2dict (s): This expects a weather report in a
![The coding language is Python. 5. [8] Complete the following function](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3130e1272c_15766f3130d8f074.jpg)
The coding language is Python.
5. [8] Complete the following function to perform as described: def weatherStr2dict (s): This expects a weather report in a string, ex. : "Edmonton 2019-09-19 12:00 Temp 23.5 Press 1100" and returns a dictionary in a form like: ( "Edmonton", (2019, 9, 19), "12:00", 23.5, 1100 ) { 'city' : "Edmonton", 'date' : "2019, 9, 19", "time' : "12:00" "temp' : 23.5 'press': 1100 } I! return { 'city' : city, DISTRIBUTI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
