shapes.py

class shapes.square[source]
setLength(length)[source]

Sets the length of the square’s sides.

getLength()[source]

Returns the set length.

getPerimeter()[source]

Returns the perimeter of the square.

getArea()[source]

Returns the area of the square.

class shapes.rectangle[source]
setLength(length)[source]
Sets the length of the rectangle.
getLength()[source]

Returns the set length.

setWidth(width)[source]

Sets the width of the rectangle.

getWidth()[source]

Returns the set length.

getPerimeter()[source]

Returns the perimeter of the rectangle.

getArea()[source]

Returns the area of the rectangle.

class shapes.circle[source]
setRadius()[source]

Sets the radius of the circle.

getRadius()[source]

Returns the radius of the circle.

setDiameter()[source]

Sets the diameter of the circle.

getDiameter()[source]

Returns the diameter of the circle.

getPi()[source]

Returns pi.

getCircumference()[source]

Returns the circumference of the circle.

getArea()[source]

Returns the area of the circle.

Previous topic

Tutorial

Next topic

exponent.py

This Page