I am trying to save the list Mean1 in vertical column format. I present the current and expected outputs.
Mean1= [25.482954545454543,
9.914772727272727,
5.369318181818182,
4.545454545454545,
4.318181818181818,
4.176136363636363,
4.119318181818182,
4.090909090909091,
4.0625,
4.0625]
with open('Mean.csv', 'w+') as f:
f.write(f"Mean1 = {str(Mean1)}\n")
The current output is
The expected output is

