-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspace-age.py
27 lines (27 loc) · 1.03 KB
/
space-age.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
age = int(input("Enter Your Age: "))
age_in_seconds = (age * 31557600)
age_o_me = (age_in_seconds/ (0.2408467*31557600))
age_o_v = (age_in_seconds / (0.61519726 * 31557600))
age_o_e = (age_in_seconds/ 31557600)
age_o_ma = (age_in_seconds/(1.8808158 * 31557600))
age_o_j = (age_in_seconds/(11.862615* 31557600))
age_o_s = (age_in_seconds/ (29.447498 * 31557600))
age_o_u = (age_in_seconds/ (84.016846 * 31557600))
age_o_n = (age_in_seconds/ (164.79132 * 31557600))
str_aoe = str(age_o_e)
str_aov = str(age_o_v)
str_aoma = str(age_o_ma)
str_aome = str(age_o_me)
str_aos = str(age_o_s)
str_aoj = str(age_o_j)
str_aou = str(age_o_u)
str_aon = str(age_o_n)
print("Your age on all eight planets:")
print("Age on Mercury: " , str_aome, "Years")
print("Age on Venus: " , str_aoma ,"Years")
print("Age on Earth: ",str_aoe," Years")
print("Age on Mars: " , str_aoma , "Years")
print("Age on Jupiter: " , str_aoj , "Years")
print("Age on Saturn: " , str_aos , "Years")
print("Age on Uranus: " , str_aou , "Years")
print("Age on Neptune: " , str_aon , "Years")