Update physics/ideal_gas_law.py

Removed unnecessary parentheses

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
robertjcalistri 2023-08-03 08:13:29 -04:00 committed by GitHub
parent c8c29e9611
commit b637591ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ def temperature_of_gas_system(moles: float, volume: float, pressure: float) -> f
if moles < 0 or volume < 0 or pressure < 0:
raise ValueError("Invalid inputs. Enter positive value.")
return (pressure * volume) / (moles * UNIVERSAL_GAS_CONSTANT)
return pressure * volume / (moles * UNIVERSAL_GAS_CONSTANT)
def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float: