On Tue, Jun 9, 2009 at 3:00 AM, Mike Hoy <hoy...@gmail.com> wrote:

> Here's the screenshot:
>
> http://img40.imageshack.us/img40/7124/printtwice.png
>
> In case the image goes down here's the code:
> import gzip
> import datetime
> date = datetime.date.today()
> name = date.strftime('%m-%d-%Y')+'.gz'
> print "The name of the file will be", name
>
> Here's the output:
> -----------------------------
> mho...@blackbox:~/code/python$ python gzip2.py
> The name of the file will be
> The name of the file will be 06-09-2009.gz
> -----------------------------
> It's Python 2.6.2 on Ubuntu 9.04
>
> -Mike Hoy
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to