my code looks like this:
import csv
mesta=["Ljubljana","Kranj","Skofja Loka","Trzin"]
opis=["ti","mene","ti mene","ne ti mene"]
delodajalci=["GENI","MOJEDELO","MOJADELNICA","HSE"]
ime=["domen","maja","andraz","sanja"]
datum=["2.1.2014","5.10.2014","11.12.2014","5.5.2014"]
with open('sth.csv','w',newline='') as csvfile:
zapis = csv.writer(csvfile, delimiter=' ')
dolzina=len(datum)
i=0
while i<dolzina:
zapis.writerows([ime[i]+","+delodajalci[i]+","+opis[i]+","+datum[i]+","+mesta[i]])
i+=1
and for some strange reason my result looks like: d o m e n G E N I t i 2 . 1 . 2 0 1 4 L j u b l j a n a m a j a M O J E D E L O m e n e 5 . 1 0 . 2 0 1 4 K r a n j a n d r a z M O J A D E L N I C A t i " " m e n e 1 1 . 1 2 . 2 0 1 4 S k o f j a " " L o k a s a n j a H S E n e " " t i " " m e n e 5 . 5 . 2 0 1 4 T r z i n
So a 4 rows x 5 column table.
I would like advice on how to make these white spaces and " " go away. So that for instance d o m e n would be domen and S k o f j a " " L o k a, Skofja Loka. I would be forever grateful for your help. Oh and if it is possibile to do it without any other modules that'd be even better since I have a problem installing them on this computer aswell :(
Thank you for your time.