[Tutor] file operations and formatting
andy surany
mongo57a@comcast.net
Mon Dec 16 17:27:01 2002
Hello list!
This should be an easy question.... but I haven't found any good
examples in my search.
a=99.99 # a float
b='hello world'
file=open('junk.txt','w')
What I want is to write a and b to junk.txt with a space in between (I'm
using file.write).
I tried using a format to write, but that didn't work - mostly because I
think that I don't understand formatting as well as I should. So does
anyone have a good reference/tutorial for formatting?
TIA.
-Andy