Write a function to calculate the energy released by converting mass m in kg to energy


Topic: Write a function to calculate the energy released by converting mass m in kg to energy

Solution

def cal_energy_by_mass(mass:float)->float:
    c = 300000
    return mass * (c**2)



List all Python Programs