Skip to content

Repository files navigation

Functions

area(a, b)

Calculates the area of a rectangle based on its two sides a and b.

Parameters

  • a (int): The length of one side of the rectangle.
  • b (int): The length of the other side of the rectangle.

Returns

  • area (int): The area of the rectangle.

perimeter(a, b)

Calculates the perimeter of a rectangle based on its two sides a and b.

Parameters

  • a (int): The length of one side of the rectangle.
  • b (int): The length of the other side of the rectangle.

Returns

  • perimeter (int): The perimeter of the rectangle.

Examples

Here are some examples of how to use the functions:

area(3, 4)
>>>12

perimeter(3, 4)
>>>14

Commit History

Commit Hash Commit Message
05b28e7 add declarations on functions in rectangle.py and triangle.py
125c0b0 add declaration on functions in square.py
d0cf959 add declaration on functions in circle.py
649526c add docs catalog, add docs/README.md file

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages