[Tutor] now = ctime()[11:20]

Richard D. Moores rdmoores at gmail.com
Sat Jul 17 08:32:52 CEST 2010

Please see <http://tutoree7.pastebin.com/azLrNL0n>

Foolishly, without thinking it through, I expected the 2 prints to
show different times. I understood right away why they were identical,
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()?


Dick Moores

More information about the Tutor mailing list