Alan Gauld wrote: > You need a loop such as > > for item in lab3int: > intFile.write( str(item) )
You also need to separate the values, with a space, a newline or whatever.
So:
for item in lab3int:
intFile.write(str(item))
intFile.write("\n")
This can be simplified to
for item in lab3int:
print(item, file=intFile)
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
