I was wondering if the adding the variable force here is redundant and could be excluded with no effect to how it functions? This the solution that was given by the professional in the get help but from my noobie perspective it seems redundant.

def get_force(mass, acceleration):

return mass*acceleration

def get_work(mass, acceleration, distance):

force = get_force(mass, acceleration) #if this line is excluded cant the line below

return force * distance #just be replaced with return get_force * distance

#since that function is already defined and returned

train_work = get_work(train_mass, train_acceleration, train_distance)

print("The GE train does " + str(train_work) + “Joules of work over " + str(train_distance) + ’ meters.”)