Technically you want a selection **which allows sequence items to be repeated,
a **combination or permutation does not:

def selections(seq, n):
"""
selections(seq, n) is a recursive generator where
seq is an iterable object
n is the sample size
n = len(seq) is the max sample size
returns a list of lists of unique sample size items
"""
if n == 0:
yield []
else:
for i in range(len(seq)):
# recursion
for ss in selections(seq, n - 1):
yield [seq[i]] + ss
# use 'ABC' or ['A', 'B', 'C']
iterable = 'ABC'
sample_size = len(iterable)
sel = list(selections(iterable, sample_size))
# show as strings
for item in sel:
s = "".join(item)
print(s)
""" my result >>>
AAA
AAB
AAC
ABA
ABB
ABC
ACA
ACB
ACC
BAA
BAB
BAC
BBA
BBB
BBC
BCA
BCB
BCC
CAA
CAB
CAC
CBA
CBB
CBC
CCA
CCB
CCC
"""

I would like to ask how can I adjust array.csv like this:
,,,-00.000146400000, 0.08000,
,,,-00.000146200000, 0.00000,
,,,-00.000146000000, 0.00000,
,,,-00.000145800000, 0.00000,

so I can have in first column -00.000146400000 ...

I have an assignment to output contents from a .txt file to html. I'm able to output the information from the .txt to the console but how would I output ...