import math


def distance(pos1, pos2):
    """Get the distance between two positions."""

    deltax = pos1[0] - pos2[0]
    deltay = pos1[1] - pos2[1]
    return math.sqrt(deltax ** 2 + deltay ** 2)