Complete the code to import the physical constants module from scipy.
from scipy import [1]
The constants module in scipy provides access to physical constants used in scientific computations.
Complete the code to print the value of the speed of light constant.
print(constants.[1])
speed_of_light is the attribute name for the speed of light constant in meters per second.
Fix the error in the code to correctly calculate energy using E=mc^2 with mass=2 kg.
mass = 2 energy = mass * constants.[1] ** 2 print(energy)
The formula E=mc² uses the speed of light squared. Using speed_of_light from constants is correct.
Fill both blanks to create a dictionary of constants with their values for speed of light and Planck constant.
phys_constants = {
'speed_of_light': constants.[1],
'Planck_constant': constants.[2]
}
print(phys_constants)The dictionary keys map to the correct constants: speed_of_light and Planck from scipy.constants.
Fill in the blanks to compute the force using Newton's law: F = G * (m1 * m2) / r^2 with given values.
m1 = 5.0 m2 = 10.0 r = 2.0 force = constants.[1] * (m1 * m2) / r[2] 2 print(force) # Force in Newtons # Use the correct operator and constant name
Newton's gravitational force formula uses the gravitational constant gravitational_constant and the exponent operator ** for squaring the distance.