Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:help': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'editor,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'later': 0.16; 'wrote:': 0.17; 'copied': 0.17; 'subject:request': 0.17; 'jan': 0.18; 'shell': 0.18; '>>>': 0.18; 'file.': 0.20; 'statement': 0.23; 'header': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'guess': 0.27; 'header:X-Complaints-To:1': 0.28; 'initial': 0.28; 'window': 0.30; 'code': 0.31; 'file': 0.32; 'idle': 0.33; 'to:addr:python-list': 0.33; 'saved': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; 'too': 0.36; 'editor': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'shows': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'cut': 0.71; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: request for help Date: Mon, 18 Feb 2013 18:58:15 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361231933 news.xs4all.nl 6870 [2001:888:2000:d::a6]:33335 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39142 On 2/18/2013 2:42 PM, leonardo selmi wrote: > i saved the above program from python shell into a file as "circle.py" . Which copied too much into the file. Edit circle.py until it is a proper python program. My initial guess was that you copied the >>> prompts, but you later message shows that it was the welcome header. Header and prompts all need to go. Idle makes it easier to cut and paste a single statement from its shell to an editor window and then save. Or start your code in an editor, such as IDLE's. -- Terry Jan Reedy