import numpy as np a = 1 b = 27 c = 30.82 d = 1000 e = 400.40 arr = [a, b, c] # Bonus #1.2 - Cube roots with Numpy a_cbrt = np.cbrt(a) b_cbrt = np.cbrt(b) c_cbrt = np.cbrt(c) d_cbrt = np.cbrt(d) e_cbrt = np.cbrt(e) arr_cbrt = np.cbrt(arr) # Print print("Bonus #1.2 - Cube roots with Numpy") print("--------------------------------------------------") print(f"Cube root of {a} = {a_cbrt}") print(f"Cube root of {b} = {b_cbrt}") print(f"Cube root of {c} = {c_cbrt}") print(f"Cube root of {d} = {d_cbrt}") print(f"Cube root of {e} = {e_cbrt}") print(f"Cube root of {arr} = {arr_cbrt}")