I want to write a simple program for burning calories, but I haven't used python in so long I could use some aid.

The basic formula is this

=0.0201*EXP(0.107*G3)*71*(F3*24*60)

Where:
71 is my weight in kg
G3 is speed in MPH
F3 is time in days

I'm not sure if python can even do EXP? but maybe..anyway, I want to make it so a person is prompted to enter their weight and speed, otherwise I think I know how to write the whole thing as a class e.g "def calorieburner (): but of course I don't want the same speed/weight in the formula.

You will find exp in math module.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.