I have the following code:
import gzip
import datetime
date = datetime.date.today()
name = date.strftime('%m-%d-%Y')+'.gz'
date.strftime('%m-%d-%Y')+'.gz'
print "The name of the file will be", name
the output is:
The name of the file will be
The name of the file will be 06-08-2009.gz
I can't figure out why 'The name of the file will be' is printing twice. Any
help appreciated.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor