BME680 Program help


I just got my BME680 running but need some help with conversion of sensor readings,
I am a python neophyte and need some assistance
I would like to convert degrees C to degrees F in python
I would also like to convert pressure in hPa to inches or mercury
If anyone can help it would greatly be appreciated


The formula for Celsius to Fahrenheit is

degrees_f = 9.0/5.0 * degrees_c + 32

Google says 1 hectopascal equals approximately 0.02953 inches of mercury so it should suffice just to multiply the pressure value by 0.02953.