Write a function to calculate the potential energy of an object of mass m at height h


Topic: Write a function to calculate the potential energy of an object of mass m at height h

Solution

def cal_pe(mass:float,height:float)->float:
    g = 9.8
    return (mass*g*height)



List all Python Programs