For my 'intro to coding class', our assignment is to calculate how far (meters) light travels in one year. I currently have completed that, however I am having trouble converting my large answer into an exponent form. we are using the newest form of python on a website called MindTap. How would I go about converting my answer into exponent form?
Here is my code for the assignment
secinyear = float(365*24*60**2)
rate = float(3*10**8)
cal = (secinyear * rate)
print("Light travels ", cal, "meters in a year.")
cal come out to be 9460800000000000.0. I wish to turn this into a proper exponent form such as 9.4608 x 10^15.