Closed zhangfelix closed 4 years ago
The first line is "from math import pi", but use "math.pi" in the following function.
Delete the "import" statement for the example.
Before
from math import pi def rads_to_degrees(rad): return (rad * 180.0) / math.pi
from math import pi rads_to_degrees(math.pi / 2) # 90.0
After
from math import pi def rads_to_degrees(rad): return (rad * 180.0) / pi
rads_to_degrees(pi / 2) # 90.0
This has already been fixed in the content curation epic. Thanks.
The first line is "from math import pi", but use "math.pi" in the following function.
Delete the "import" statement for the example.
Before
After