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
10 changes: 10 additions & 0 deletions numbers/find_e.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import math

##Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go.
#a = input('enter a number')
def finde(numb):
mye = math.e # assign math.e to mypi
return (round(mye, numb))

thee = finde(5)
print(thee)
Empty file added numbers/find_fibonacci
Empty file.
11 changes: 11 additions & 0 deletions numbers/find_pi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from math import pi

##Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go.
def findpi(numb):
mypi = pi # assign pi to mypi
return (round(mypi, numb))

#a = raw_input('enter a number: ')
a = 4
thepi = findpi(a)
print(thepi)