[Tutor] Equivalent to perl -e

Kent Johnson kent37 at tds.net
Mon Oct 16 03:31:11 CEST 2006

Chris Lasher wrote:
> My professor and advisor has been "inspired" by me to give Python a
> try. He's an avid Perl user, and challenged me with the following:
> What is the Python equivalent to perl -e '<some oneliner>'?

python -c

More details here:


More information about the Tutor mailing list