def create_path(wire):
    """
    Takes a list of tuples containing instructions as to the wire path.
    e.g. ('R', 124) -> Right 124 units
  
    Generates and returns a list of tuples representing the coordinates
    that a wire travels along on its path.
    """
    
    path = []
    position = [0, 0]
    path.append(position[:])
    
    for i in range(len(wire)):
        
        if wire[i][0] == 'U':
            for j in range(wire[i][1]):
                position[0] += 1
                path.append(position[:])
                
        if wire[i][0] == 'D':
            for j in range(wire[i][1]):
                position[0] -= 1
                path.append(position[:])
                
        if wire[i][0] == 'R':
            for j in range(wire[i][1]):
                position[1] += 1
                path.append(position[:])
                
        if wire[i][0] == 'L':
            for j in range(wire[i][1]):
                position[1] -= 1
                path.append(position[:])           
    
    return path