@praveencqr: there is no need to open and close file on every write to file. In that sense @vman44 code is correct - open the file and write rows.
Alternatively one can use
Alternatively one can use
print
for writing into file and advantage of this is that you don't need to worry about newline:with open(dbfileA, 'a') as writer: for in_val in userinputs: print(in_val, file=writer)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.