Python program to Calculate the Orbital Speed

from math import pi
r = float(input("Insert radius of the orbit(million km): "))
v = float(input("Insert orbital speed(km/s): "))
r = r*1000000
yr = 2*pi*r/v
yr = yr/(60*60*24)
print(round(yr))

 

 

 

Output:

Insert radius of the orbit(million km): 120
Insert orbital speed(km/s): 12
727

 

Insert radius of the orbit(million km): 12
Insert orbital speed(km/s): 48
18

 

Subscribe For Daily Updates