I am trying to learn python and stumbled upon what seems like another silly mistake on my part.
With version 2.7.3, which I downloaded from python.org , I get no output for a simple program with -c . I get output with 2.6.8 output from cygwin.
What am I missing?
> c:\Python27\python.exe --version Python 2.7.3 > c:\Python27\python.exe -c 'print("hello")' > c:\Python27\python.exe Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print("hello") hello >>> exit() > c:\cygwin\bin\python2.6.exe --version Python 2.6.8 > c:\cygwin\bin\python2.6.exe -c 'print("hello")' hello > c:\cygwin\bin\python2.6.exe Python 2.6.8 (unknown, Jun 9 2012, 11:30:32) [GCC 4.5.3] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> exit()
source share