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
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
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
Thank you for the reply It worked fine !
--- On Sun, 2/12/12, Steven D'Aprano wrote:
From: Steven D'Aprano
Subject: Re: [Tutor] string integers?
To: tutor@python.org
Date: Sunday, February 12, 2012, 6:50 PM
William Stewart wrote:
> this is the code I have
> str1 = raw_
these days
I know you all dont have alot of time either and thats why I am extremely
appreciative of everyones help
--- On Sun, 2/12/12, Dave Angel wrote:
From: Dave Angel
Subject: Re: [Tutor] string integers?
To: "William Stewart"
Date: Sunday, February 12, 2012, 5:07 PM
On 02
I am trying to get 2 string variables and 2 integer variables to be able to be
multiplied
can anyone tell me what I did wrong
str1 = raw_input("Type in a String: ")
str2 = raw_input("Type in a String: ")
int1 = raw_input("Type in a integer variable: ")
int2 = raw_input("Type in a integer variabl
Hello everyone, I am making a calculator and I need to know how to make it do
exponents and remainders
How can I input this info in python?
Any help would be appreciated
Thanks
--- On Mon, 2/6/12, Steven D'Aprano wrote:
From: Steven D'Aprano
Subject: Re: [Tutor] Sandbox Game
To: "tutor"
Date
hello
I am trying to make a math functions program which includes
ADDITION: 2+2=4
SUBTRACTION: 4-2=2
MULTIPLICATION: 4*2=8
DIVISION: 4/2=2
EXPONENT: 2**3=8
REMAINDER: 5%2=1
I have no Idea how to start this task I have never used ANY programming
programs before And I dont Know the language eit