Question: Python 2.7: Write a while loop to calculate the escape velocity from the surface of the Sun as you shrink the Suns radius by a
Python 2.7: Write a while loop to calculate the escape velocity from the surface of the Sun as you shrink the Suns radius by a factor of 2 with each step (keep the mass the same). At each step, your code should print out a sentence giving the current radius of the sun and the escape velocity in scientific notation. Stop the while loop when the escape velocity is greater than the speed of light.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
