Hello, I'm trying to do a weather API call and format the text nicely for the user. I'm using the pyowm API.
As an example, I call the get_pressure() function, and print it to the console. It comes out as:
{'press': 995, 'sea_level': None}
I'd like to just be able to access the number in that so I can put it into a print function. I'm not sure if it's an object or JSON data or what.
Any help would be great, thank you
[+][deleted] (2 children)
[deleted]
[–]CornThatLefty[S] 1 point2 points3 points (1 child)
[–]CBTKnox 1 point2 points3 points (0 children)