"Richard D. Moores" <rdmoo...@gmail.com> wrote
but then I began to wonder how to create an "alias" for
"ctime()[11:20]" so I wouldn't have to keep typing or pasting it.
"now" would be fine. But how to get it to execute ctime()?

Create a function?

def myNow():
    return ctime()[11:20]

Or am I missing something?


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to