From c8c29e9611c45c85c7e9c36ea959eea822d3f468 Mon Sep 17 00:00:00 2001 From: robertjcalistri <85811008+robertjcalistri@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:13:13 -0400 Subject: [PATCH] Update physics/ideal_gas_law.py Removed unnecessary parentheses Co-authored-by: Tianyi Zheng --- physics/ideal_gas_law.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics/ideal_gas_law.py b/physics/ideal_gas_law.py index 148b19d5a..dce2d3d35 100644 --- a/physics/ideal_gas_law.py +++ b/physics/ideal_gas_law.py @@ -84,7 +84,7 @@ def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float: if kelvin < 0 or volume < 0 or pressure < 0: raise ValueError("Invalid inputs. Enter positive value.") - return (pressure * volume) / (kelvin * UNIVERSAL_GAS_CONSTANT) + return pressure * volume / (kelvin * UNIVERSAL_GAS_CONSTANT) if __name__ == "__main__":