import math


def CalcDistance(p1, p2):
    """
    Function to calculate distance in space between two points (p)
    p1, p2: (f) lists of coordinates for point1 and point2
    """
    dist = math.sqrt((p2[0]-p1[0])**2 + (p2[1]-p1[1])**2 + (p2[2]-p2[2])**2)
    return(dist)