Assuming that a "leprecon" is meant to be a "leprechaun" and we want to calculate the weight of a leprechaun on a given planet, we can use the following formula:
weight_on_planet = mass_of_leprechaun * surface_gravity_of_planet
Here's an example Python code that calculates the weight of a 10 kg leprechaun on Earth:
main.py208 chars7 lines
Output:
main.py49 chars2 lines
Please note that the weight of the leprechaun would be different on different planets with different surface gravities. To calculate the weight on a different planet, you would need to know the mass and surface gravity of that planet. Alternatively, you can look up tables of planet surface gravities online.
gistlibby LogSnag