Update ideal_gas_law.py

Updated incorrect function calls moles of gas system doctests
This commit is contained in:
robertjcalistri 2023-08-03 08:15:55 -04:00 committed by GitHub
parent b637591ae9
commit 5ce54f2180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,11 +72,11 @@ def temperature_of_gas_system(moles: float, volume: float, pressure: float) -> f
def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float:
"""
>>> temperature_of_gas_system(100, 5, 10)
>>> moles_of_gas_system(100, 5, 10)
0.06013618199229246
>>> temperature_of_gas_system(110,5009,1000)
>>> moles_of_gas_system(110,5009,1000)
5476.766101807144
>>> temperature_of_gas_system(3, -0.46, 23.5)
>>> moles_of_gas_system(3, -0.46, 23.5)
Traceback (most recent call last):
...
ValueError: Invalid inputs. Enter positive value.