def get_list_of_tuples_from_list(list):
    """
    Get a list of tuples from a list.

    For example given:

    [1,2,3,4,5,6]

    Return [(1,2),(3,4)(5,6)]

    """
    output = []
    item = []

    for i in list:
        item.append(i)
        if len(item) == 2:
            output.append(item)
            item = []
    if item:
        output.append(item)

    return output