Gravedad= {"venus":8.8, "tierra":9.8, "marte":3.7}
Altura_m= {"A1":10, "A2":35, "A3":50}
Tiempo_s= {"t1":8, "t2":12, "t3":30}
Velocidad_ms= {"v1":10, "v2":50, "v3":100}

import math
#El tiempo que tarda en caer un objeto en cada planeta si se lanza desde A2 metros de altura

operation_v= 2*Altura_m["A2"]/Gravedad["venus"]
tiempo_venus= math.sqrt(operation_v)
operation_t= 2*Altura_m["A2"]/Gravedad["tierra"]
tiempo_tierra= math.sqrt(operation_t)
operation_m= 2*Altura_m["A2"]/Gravedad["marte"]
tiempo_marte= math.sqrt(operation_m)

print(f"El tiempo que tarde en caer el objeto en Venus es de {tiempo_venus}, en la Tierra es de {tiempo_tierra} y en Marte es de {tiempo_marte}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: