Computer Science, asked by podipbachhar, 4 months ago

Please answer my question..it's urgent..​

Attachments:

Answers

Answered by Equestriadash
3

The following co‎des have been written using Python.

#obtaining the weight on Earth as input

we = float(input("Enter your weight on Earth: "))

print()

#calculating the weight on other planets

print("Your weight on Mercury: ", we*0.38)

print("Your weight on Mars: ", we*0.38)

print("Your weight on Uranus: ", we*0.89)

print("Your weight on Venus: ", we*0.90)

print("Your weight on Saturn: ", we*1.06)

print("Your weight on Neptune: ", we*1.13)

print("Your weight on Jupiter: ", we*2.36)

float() is most suitable when the data is most likely to be in decimal form.


Equestriadash: Thanks for the Brainliest! ^_^"
Similar questions