Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tim Chase Newsgroups: comp.lang.python Subject: Re: Why won't this run? Date: Sun, 15 Nov 2015 14:55:45 -0600 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Lzs5nEARLmzGfLJwonaYywpoAsUbpkrBpOBGmiJJpg+Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'error:': 0.05; 'cc:addr:python-list': 0.09; 'subject:Why': 0.09; 'python': 0.10; 'syntax': 0.13; '#this': 0.16; '-tkc': 0.16; '12:38,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:run': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.16; 'shell': 0.18; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '"",': 0.22; 'sep': 0.22; 'cc:no real name:2**0': 0.22; 'bit': 0.23; 'header:In-Reply-To:1': 0.24; 'linux': 0.26; 'skip:( 20': 0.28; 'asks': 0.29; 'colon': 0.29; 'certainly': 0.30; 'says': 0.32; 'file': 0.34; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'charset:us-ascii': 0.37; 'more': 0.63; 'received:50': 0.66; 'starters,': 0.84; 'subject:this': 0.85; '2014,': 0.91 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1447621036105:4197187344 X-MC-Ingress-Time: 1447621036105 In-Reply-To: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98860 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 "", line 1 print:('hellow world!') ^ SyntaxError: invalid syntax -tkc