Dec-06-2021, 04:33 PM
Imagine yourself as a space ranger. Create a function that has the distances from Earth to the five nearest
stars (find the distances and names of the stars on the Internet).The user enters the speed of his ship and receives time (in hours) in which it will reach each star.If it will take more than 10 years to travel, display on the screen the recommendation to work on the ship and the speed which is needed for the voyage to last less than 10 years.
stars (find the distances and names of the stars on the Internet).The user enters the speed of his ship and receives time (in hours) in which it will reach each star.If it will take more than 10 years to travel, display on the screen the recommendation to work on the ship and the speed which is needed for the voyage to last less than 10 years.
import time alphaCentauri = 4 alphaCentauriB = 4.5 barnard = 5 lumanSixteen = 6 wolfThree = 13 speed= int(input("скорость корабля:")) time = alphaCentauri / speed #other stars print("время в часах:", time,"час(ов)" )This is all that i could write