I am trying to write multiple variables in one file. And would like to avoid to write all the variables and their type seperately.
I created the varibales with:
for i in range(100):
globals()['doc%s' %i] = 5.*i
to write it to the file:
df = open("test.csv")
df.write("%0.10.f;%0.10.f" % (doc1, doc2))
But i would like to avoid to write within the last line all 100 names with the types.
Is this possible? Does anyone have an idea? Thank you!