Re: [Tutor] how to rewrite area.py

2012-02-22 Thread Alan Gauld
On 22/02/12 23:45, William Stewart wrote: so I copied your format except I changed shape 3 to circle, Did I do the circle part right? Nearly. The circumference is wrong, you need to calculate it not read it from the user. and would this be considered separate functions? No, but your seco

Re: [Tutor] how to rewrite area.py

2012-02-22 Thread William Stewart
width+width+width+width = 4*width RECTANGLES:     area = width*height     perimeter = width+height+width+height = 2*(width+height) CIRCLES:     area = pi*radius**2     circumference = 2*pi*radius         --- On Tue, 2/21/12, Alan Gauld wrote: From: Alan Gauld Subject: Re: [Tutor] how

Re: [Tutor] how to rewrite area.py

2012-02-22 Thread William Stewart
On 2/21/2012 6:51 PM, William Stewart wrote: hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). "Need to"" - why? Is this a homework assignment? I am horrible at ma

Re: [Tutor] how to rewrite area.py

2012-02-21 Thread Alan Gauld
On 21/02/12 23:51, William Stewart wrote: I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). You will find something similar in my tutorial in the topic Branching. Look under the heading "Pyt

Re: [Tutor] how to rewrite area.py

2012-02-21 Thread bob gailer
On 2/21/2012 6:51 PM, William Stewart wrote: hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). "Need to"" - why? Is this a homework assignment? I am horrible at math and I cannot ev

Re: [Tutor] how to rewrite area.py

2012-02-21 Thread Steven D'Aprano
William Stewart wrote: hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). I am horrible at math and I cannot even figure out what I need to do for this Any help would be appreciated Ha

Re: [Tutor] how to rewrite area.py

2012-02-21 Thread Dave Angel
On 02/21/2012 06:51 PM, William Stewart wrote: hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). I am horrible at math and I cannot even figure out what I need to do for this Any help wo

[Tutor] how to rewrite area.py

2012-02-21 Thread William Stewart
hello I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2). I am horrible at math and I cannot even figure out what I need to do for this Any help would be appreciated All I have is the menu which