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:13 -04:00 committed by GitHub
parent a2d6d5b574
commit c8c29e9611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__":