Why won't this run?
Tim Chase
python.list at tim.thechases.com
Sun Nov 15 15:55:45 EST 2015
On 2015-11-15 12:38, jbak36 wrote:
> Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC
> v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or
> "license()" for more information.
> >>> #this program says hello and asks for my name
> >>> print:('Hello world!')
> Hello world!
Well, for starters, you're almost certainly not copy/pasting from the
shell session as the colon after the "print" is a syntax error:
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print:('hellow world!')
File "<stdin>", line 1
print:('hellow world!')
^
SyntaxError: invalid syntax
-tkc
More information about the Python-list
mailing list