# Write a function to calculate the gravitational force between two objects of mass m1 and m2 and distance of r between them

## Topic: Write a function to calculate the gravitational force between two objects of mass m1 and m2 and distance of r between them

Solution

def cal_gforce(mass1:float,mass2:float, distance:float)->float: g = 6.674*(10)**(-11) return (g*mass1*mass2)/(distance**2)

List all Python Programs