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


Groups > comp.lang.python > #39120

request for help

From leonardo selmi <l.selmi@icloud.com>
Subject request for help
Date 2013-02-18 20:42 +0100
Newsgroups comp.lang.python
Message-ID <mailman.1963.1361216626.2939.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

request for help leonardo selmi <l.selmi@icloud.com> - 2013-02-18 20:42 +0100

csiph-web