Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98881
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Gary Herron <gherron@digipen.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: Why won't this run? |
| Date | Sun, 15 Nov 2015 12:50:12 -0800 |
| Lines | 26 |
| Message-ID | <mailman.362.1447679384.16136.python-list@python.org> (permalink) |
| References | <ea4e1c5e-08e8-4a75-95ce-9e4eeca92021@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de twjfkSG4QaXvmqIrI5mKSgL1o1BXo08w2YqhQ7v+4/wA== |
| Return-Path | <gherron@digipen.edu> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.057 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'win32': 0.03; '(without': 0.09; 'situation.': 0.09; 'subject:Why': 0.09; 'python': 0.10; 'output': 0.13; 'syntax': 0.13; '#this': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'somehow.': 0.16; 'subject:run': 0.16; 'wrote:': 0.16; 'produces': 0.22; 'sep': 0.22; 'bit': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'skip:( 20': 0.28; 'actual': 0.28; 'asks': 0.29; 'colon': 0.29; 'print': 0.30; 'another': 0.32; 'says': 0.32; 'attempt': 0.35; 'question,': 0.35; 'but': 0.36; 'instead': 0.36; 'there': 0.36; 'lines': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'does': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'further': 0.62; 'charset:windows-1252': 0.62; 'more': 0.63; 'results': 0.66; 'cut': 0.67; 'dr.': 0.69; 'received:204': 0.75; 'institute': 0.77; '(425)': 0.84; '895-4418': 0.84; 'digipen': 0.84; 'herron': 0.84; 'lying': 0.84; 'subject:this': 0.85 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <ea4e1c5e-08e8-4a75-95ce-9e4eeca92021@googlegroups.com> |
| X-Mailman-Approved-At | Mon, 16 Nov 2015 08:09:44 -0500 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:98881 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why won't this run? jbak36 <j.bak36@gmail.com> - 2015-11-15 12:38 -0800 Re: Why won't this run? Tim Chase <python.list@tim.thechases.com> - 2015-11-15 14:55 -0600 Re: Why won't this run? Gary Herron <gherron@digipen.edu> - 2015-11-15 12:50 -0800 Re: Why won't this run? Mike S <mscir@yahoo.com> - 2015-11-19 19:26 -0800
csiph-web