Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:help': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'def': 0.10; '"import': 0.16; 'fix': 0.17; 'stefan': 0.17; 'subject:request': 0.17; 'shell': 0.18; 'math': 0.20; 'import': 0.21; 'cc:2**0': 0.23; 'mention': 0.23; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'fine': 0.28; 'indentation': 0.29; 'error': 0.30; 'code': 0.31; 'file': 0.32; 'received:google.com': 0.34; 'saved': 0.35; 'next': 0.35; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'your': 0.60; 'kind': 0.61; 'header:Message-Id:1': 0.62; 'time,': 0.62 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=2KNrJDhs3C32SPWFymM1j1Th5OxJOt/S783Q1WPfCgg=; b=h8pyme3nurxT9ZcJ7+LNohmlx9pjvimahYVxO8qw4XgV5j/UvJXnHbktBB+YQcEr6R WgKkwzdRrXzaR4SednWlmaugQwuT3tlTr3Y9FkCiZWod58v0UNuxLpmZKuKzGwP3Xwu7 NLnFPUgr/ixd6oSKXsZNAlMIz1gKS40h6tTpDxvyiFVX21qS7HrTAFK8RuHl+2GLlKth nGMhATD0qN5FFFD44WPCiqoeHalf29n41e/SFO240aSOX0MH82pCv/G+oE2vx/kDpoLS ZY7dNzxhB6rDNx8XeXzv5HgKnYdhRrr8HrDJxL6m72/uZ7JNyxn79fldEeWQjkjRvddF ifrQ== X-Received: by 10.180.91.106 with SMTP id cd10mr3828024wib.6.1361217563269; Mon, 18 Feb 2013 11:59:23 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: request for help From: Stefan Holdermans In-Reply-To: Date: Mon, 18 Feb 2013 20:59:20 +0100 Content-Transfer-Encoding: quoted-printable References: To: leonardo selmi X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQluRwYUDblQwsyHSpLKG1C4GOo8PMZzTMQ/MrOTC1yXj1KroYZU6xH9VXRI+I6JkIeQ6FE+ Cc: "python-list@python.org" 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361217565 news.xs4all.nl 6883 [2001:888:2000:d::a6]:45375 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39124 Leonardi, > i saved the above program from python shell into a file as "circle.py" = . when i type "import circle" i get error.. Next time, please mention what kind of error you're getting. Was it an indentation error? Because, as you pasted it, your code would = lead to one. If I fix the indentation, as in import math def area(radius): return math.pi * radius**2 def circumference(radius): return 2 * math.pi * radius it works fine for me. HTH, Stefan=