Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Han's changes #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
6 changes: 3 additions & 3 deletions participants/scipy_007/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Ok so I guess you are reading this cuz you wanna use my code. There are some
functions that do stuf and thats:
Ok, so I guess you are reading this cuz you wanna use my code. There are some
functions that do stuff and that's:

>>> from simple_functions import factorial
>>> factorial(10)
9

and this other part does something. I forget why that I did it:
and this other part does something. I forget why I did it:

>>> fibonnaccci(100)
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
Expand Down
7 changes: 7 additions & 0 deletions participants/scipy_007/pr_tutorial/simple_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ def factorial(value):
return 1
else:
return value * factorial(value - 1)

def isPrime(n):
for i in range(2,int(n**0.5)+1):
if n%i==0:
return False

return True