Why won't this run?
Gary Herron
gherron at digipen.edu
Sun Nov 15 15:50:12 EST 2015
On 11/15/2015 12:38 PM, 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!
>
You are lying to us somehow. That attempt to print (as you've written
it) does not produce the the line of output you've indicated. Instead
it produces a syntax error, because Python does not use a colon in that
situation.
So change your print:(...) lines to print(...) (without the colon) and
try again. If there is further trouble, ask another question, but
please cut and paste the actual and *exact* results into the email.
Gary Herron
--
Dr. Gary Herron
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418
More information about the Python-list
mailing list