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
8 changes: 4 additions & 4 deletions participants/scipy_047/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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 punny code. There are some
function's that do stuf and thats:

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

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

Expand Down
6 changes: 6 additions & 0 deletions participants/scipy_047/pr_tutorial/simple_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ def factorial(value):
return 1
else:
return value * factorial(value - 1)

def is_small_prime(value):
if(value == 2 | value == 3):
return True
else:
return False