issue writing a csv record in pydroid 3

111 Views Asked by At

Beginner python. Error writing csv record in pydroid 3 on Samsung s9+

hi .. new to SO & pydroid. Copied code from book but runtime errors in pydroid 3. code >>

import csv
file=open (''stars.csv","w")
newrecord="brian,73,taurus\n"
file.write(str(newrecord))
file.close()

output attached.

Advice appreciated.

Many thanks in advance

Gary
0

There are 0 best solutions below