Question: In python: Fix the code so that the test cases pass. import pytest def fToC(FTemp): return fTemp - 32 #Todo: Fix this line of code
import pytest def fToC(FTemp): return fTemp - 32 #Todo: Fix this line of code def cToF(cTemp): return cTemp + 32 #Todo: Fix this line of code def test_fToC_freezing: def test_cToF-freezingO: def test fToC boiling def test_cToFboilingO: assert fToC(32.0)--pytest.approx(0.0) assert cToFC0.0)-pytest.approx(32.0) O: assert fToC(212.0)--pytest.approx(100.0) assert cToFC100.0)--pytest.approx(212.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
