We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6b118a + 124e3a4 commit 837e2ddCopy full SHA for 837e2dd
tests/it/script_scope.py
@@ -35,10 +35,11 @@
35
import numpy as np
36
37
def calculate_cbrt(age):
38
- return round(age ** (1. / 3))
+ # check whether defined function can import module from global namespace
39
+ if round(age ** (1. / 3)) == round(np.cbrt(age)):
40
+ return round(age ** (1. /3))
41
42
cbrt_age = calculate_cbrt(age)
-# cbrt_age = round(math.cbrt(age))
43
f"The rounded cube root of my age is {cbrt_age}"
44
"""
45
StringReader = scyjava.jimport("java.io.StringReader")
0 commit comments