Skip to content Skip to sidebar Skip to footer

Removing Variable Parts Of An Output

I am working with a pyowm, and I have the following output for requesting the weather of a specific place:

Solution 1:

I'm assuming that this is a print of Weather class object which is printed on the shell. You can try doing weather_obj.get_status() to get the status string from that object. Here weather_obj is the above weather object that you have mentioned on the question. Source Implementation Reference. Doc Reference.


Post a Comment for "Removing Variable Parts Of An Output"