Write a function to return the cartisian distance of a point from origin


Topic: Write a function to return the cartisian distance of a point from origin

Solution

def cal_dist_from_orign(x:float,y:float)->float:
    return (x**2+y**2)**(1/2)



List all Python Programs