mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update physics/ideal_gas_law.py
Removed unnecessary parentheses Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
a2d6d5b574
commit
c8c29e9611
@ -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__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user