Using the pyXSteam library (https://pypi.org/project/pyXSteam/), I need to code the solution to the following problem for my engineering class: "If U = 2841.91 kJ/kg and v = 0.8052 m³/kg, calculate P and also determine the thermodynamic state (quality)". This is basically iterating values from the embedded table, interpolating them and finding the value. Attached to this message is an Excel file, which I have used to solve it - now I need it translated to Python code. In the Excel file, you will see the logic behind solving the problem. In it, I started right away with P = 0,3MPa and P = 0,4MPa. I did that because I looked up the value for U = 2841.91 kJ/Kg in the table and found that it was in the superheated (super aquecimento) table. So, do not start assuming that it is superheated, there needs to be an explanation. The code, through iteration or something else, should be a student looking at the given values and trying to refer from table in order to calculate other values. See if it makes sense, I am here if anything is needed. Attention to nomencalture (found at the bottom of https://pypi.org/project/pyXSteam/). If you could translate everything to portuguese, that would be best, if not that's ok. Also attached is the code that DeepSeek rendered; maybe it could be of use.