Write a function to calculate the focal length of a lense buy the distance of object and distance of image from lense


Topic: Write a function to calculate the focal length of a lense buy the distance of object and distance of image from lense

Solution

def cal_focal_length_of_lense(u:float,v:float)->float:
    return (u*v)/(u+v)



List all Python Programs