Do we have python equivalent of 'perl -e'??

Peter Otten __peter__ at web.de
Fri Aug 22 02:25:24 EDT 2008


srinivasan srinivas wrote:

> Like we run perl small code snippet using perl -e, do we have anything
> like that in python?? Thanks,

$ python -c 'print "yes"'
yes

Peter



More information about the Python-list mailing list