epidemioptim/utils.py
def create_list(value, sublist_nb, sublist_size):
    """
    Create a list of len sublist_size, filled with sublist_nb sublists. Each sublist is filled with the value value
    """
    out = []
    tmp = []
    for i in range(sublist_nb):
        for j in range(sublist_size):
            tmp.append(value)
        out.append(tmp)
        tmp = []
    return out

    Create a list of len sublist_size, filled with sublist_nb sublists. Each sublist is filled with the value value
    
Create a list of len sublist_size, filled with sublist_nb sublists. Each sublist is filled with the value value
Create a list of len sublist_size filled with sublist_nb sublists . Each sublist is filled with the value value
def create_list(value, sublist_nb, sublist_size):
    out = []
    tmp = []
    for i in range(sublist_nb):
        for j in range(sublist_size):
            tmp.append(value)
        out.append(tmp)
        tmp = []
    return out
def create_list ( value , sublist_nb , sublist_size ) : out = [ ] tmp = [ ] for i in range ( sublist_nb ) : for j in range ( sublist_size ) : tmp . append ( value ) out . append ( tmp ) tmp = [ ] return out
Create a list of len sublist_size, filled with sublist_nb sublists.
Create a list of len sublist_size filled with sublist_nb sublists .
"""
    Create a list of len sublist_size, filled with sublist_nb sublists. Each sublist is filled with the value value
    """
value
sublist_nb
sublist_size