r/PythonProjects2 • • Feb 25 '24

Help coding my interplanetary weight please!!!!

Im trying to finish my first coding project (new to python). Please help me with it! Promt name& weight (set at 70.5 kg)

Convert in to data type decimal

Function equation : weight= earth weight x surface gravity factor glossary

Mercury- 0.38 Venus- 0.91 Moon- 0.165 Mars- 0.38 Jupiter- 2.34 Saturn- 0.93 Uranus- 0.92 Neptune- 1.12 Pluto- 0.066

  • The output in weight needs to take up ten positions with two decimal points

  • Use s prefix in front of variables for strings *use n prefix for variables with numbers. *Use numeric data points that store decimal points.

0 Upvotes

5 comments sorted by

View all comments

3

u/mmybad Feb 25 '24

Bro, please show the code so far. I couldn't really understand the gibberish