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

2

u/janus2527 Feb 25 '24

Lol looks like an assignment. What have you got so far?

-4

u/Economy_Awareness578 Feb 25 '24

Yes it is an assignment , no joke Well one if Q post the black box Hypotheococresus!