I have a question on question 9 of the Python 3 Freedom Project (Physics Class).
I am not quite sure why the below code that I have used would not work?
The solutions shown set
bomb_energy = get_energy(bomb_mass)
Is there a reason for my code not working?
It looks like you have missed a * between mass and c in your return statement.
Thank you but I did include that * - must have not been pasted properly onto the forum!
Calling the get_energy() function does not save the value returned unless you assign it to a variable like you see they did in the solution with bomb_energy = get_energy(bomb_mass).
You will want to call the get_energy() function within the print function to get it to print the return value.