syntax for -c cmd

James hslee911 at yahoo.com
Wed May 10 20:13:18 CEST 2006


Wrong syntax is shown below. What should be the delimiter before else?

python -c 'if 1==1: print "yes"; else print "no"'

James




More information about the Python-list mailing list