def coor_2(n,a,b):
    """
    Calculates a list of coordinates using a list comprehension
    """
    length = (b-a)/float(n+1)
    coordinates = [a + length * (i + 1) for i in range(n+1)]
    return coordinates