Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# **Installation**
## **From Terminal**
#### 1. use command `pip3 install easyPythonPi`
#### 2. import using `From easyPythonpi.easyPythonpi import*`

## **Functions in _easyPythonPi_ Library**

### **_add(x, y)_**

#### \*For adding two numbers

## **_sub(x, y)_**

#### \* For subtracting two numbers

## **_div(x, y)_**

#### \* For dividing two numbers

#### \* This will return quotient

## **_mod(x, y)_**

#### \* For dividing two numbers

#### \* This will return reminder

## **_factorial(n)_**

#### \* This will give factorial of the number i.e n

#### \* eg: n = 3
#### 3 x 2 x 1 = 6

## **_AreaCircle(r)_**

#### \* Will give area of circle
#### \* Takes radius as parameter

## **_PerimeterCircle(r)_**

#### \* Will give the perimeter of circle
#### \* Takes radius as parameter

## **_fibonacci(n)_**

#### \* **[Click To Learn About Fibonacci Series In Python]**(https://www.programiz.com/python-programming/examples/fibonacci-sequence#:~:text=A%20Fibonacci%20sequence%20is%20the,n%2D2th%20term.)

## **_sort(list)_**

#### \* For sorting(i.e ascending order) [ bubble sort ]
4 changes: 2 additions & 2 deletions module.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def factorial(n): # To find the factorial of 2 numbers
# single line to find factorial
return 1 if (n == 1 or n == 0) else n * factorial(n - 1)

def Area_circle(r): # To find the area of a circle using the radius r
def AreaCircle(r): # To find the area of a circle using the radius r
PI = 3.142
return PI * (r * r)

def Perimeter_circle(r): # To find the perimeter of a circle using the radius r
def PerimeterCircle(r): # To find the perimeter of a circle using the radius r
PI = 3.142
return 2 * PI * r

Expand Down