Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39123

Re: request for help

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <matt.walker.jones@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:help': 0.07; 'python': 0.09; 'def': 0.10; '"import': 0.16; 'indent': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'copied': 0.17; 'subject:request': 0.17; 'shell': 0.18; 'feb': 0.19; 'math': 0.20; 'to:name:python- list@python.org': 0.20; 'import': 0.21; '\xa0if': 0.22; 'seems': 0.23; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'methods.': 0.29; 'url:mailman': 0.29; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'to:addr :python-list': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'saved': 0.35; 'so,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'shows': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'your': 0.60; 'kind': 0.61; '2013': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=FExKkALlFPtzSeNPnvdvdw/ztL0uhD+Z59jhylH4RqM=; b=zxrpryuzcSB97quvXqiQ2vDJo9QwPsudU6k1fpDbo4dq1C/HXhREDdc6IcFSxLo5tH vdLTD7AwNcDbdVxOZYPWbwl9+nGGnStemjGNB/bfz/9u0kVEqxRDZ7gdhTAXqtsZ9gKo A4RmNMGrwbF8oQcPEVXbn6NznPN8All3coxWomtVGZ8Xszu6+D9kcFtkrFwrLxj2na8D 0BYaOac1qEhApuXM3z0SzOqHKMf+qPJHwCBxqAdFFrI4Ucx46yvaV2mtjNVNyflgDQcZ 3uJXdl8RriJbzLYRTo9IPu4CyyedmGH+uqqWnrEdStpzjdDSm4WLz3Npiy5nOeZiNGf/ h88g==
X-Received by 10.182.49.102 with SMTP id t6mr6457228obn.75.1361217333408; Mon, 18 Feb 2013 11:55:33 -0800 (PST)
MIME-Version 1.0
In-Reply-To <B7C01624-32AB-49CE-AAB4-064A5B8E54CB@icloud.com>
References <B7C01624-32AB-49CE-AAB4-064A5B8E54CB@icloud.com>
From Matt Jones <matt.walker.jones@gmail.com>
Date Mon, 18 Feb 2013 13:55:13 -0600
Subject Re: request for help
To "python-list@python.org" <python-list@python.org>
Content-Type multipart/alternative; boundary=f46d04479f779eb3e104d6051b8d
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1966.1361217337.2939.python-list@python.org> (permalink)
Lines 110
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361217337 news.xs4all.nl 6859 [2001:888:2000:d::a6]:41207
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39123

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Is this exactly how it shows in your shell?  If so, it seems you need to
indent your methods.

#****************************************
import math

def area(radius):
    return math.pi * radius**2

def circumference(radius):
    return 2 * math.pi * radius
#****************************************

*Matt Jones*


On Mon, Feb 18, 2013 at 1:42 PM, leonardo selmi <l.selmi@icloud.com> wrote:

> pls i need help:
>
> i have copied the following from a book and tried to make it work:
>
> import math
>
> def area(radius):
> return math.pi * radius**2
>
> def circumference(radius):
> return 2 * math.pi * radius
>
> i saved the above program from python shell into a file as "circle.py" .
> when i type "import circle" i get  error..
>
>
> kind regards
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: request for help Matt Jones <matt.walker.jones@gmail.com> - 2013-02-18 13:55 -0600

csiph-web