epidemioptim/utils.py
def duplicate_data(data, nbr):
    """
    Duplicate a single list (data) into identical sublists a given number of times (nbr)
    """
    out = []
    for i in range (nbr):
        out.append(data)
    return out

    Duplicate a single list (data) into identical sublists a given number of times (nbr)
    
Duplicate a single list (data) into identical sublists a given number of times (nbr)
Duplicate a single list ( data ) into identical sublists a given number of times ( nbr )
def duplicate_data(data, nbr):
    out = []
    for i in range (nbr):
        out.append(data)
    return out
def duplicate_data ( data , nbr ) : out = [ ] for i in range ( nbr ) : out . append ( data ) return out
Duplicate a single list (data) into identical sublists a given number of times (nbr)
Duplicate a single list ( data ) into identical sublists a given number of times ( nbr )
"""
    Duplicate a single list (data) into identical sublists a given number of times (nbr)
    """
data
nbr