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

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!

3

u/mmybad Feb 25 '24

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

3

u/exploreeverything99 Feb 25 '24

Looks like you haven't even tried and just copied your assignment instructions here

3

u/misap Feb 25 '24

You should quit school and become a delivery guy