diff --git a/participants/scipy_003/doc/README.md b/participants/scipy_003/doc/README.md index a1542d9..9039cc3 100644 --- a/participants/scipy_003/doc/README.md +++ b/participants/scipy_003/doc/README.md @@ -1,13 +1,10 @@ -Ok so I guess you are reading this cuz you wanna use my code. There are some -functions that do stuf and thats: +This is an example of using the functions in this package: >>> from simple_functions import factorial >>> factorial(10) 9 -and this other part does something. I forget why that I did it: +This is an example of generating a Fibonacci sequence for all values up to some integer: - >>> fibonnaccci(100) + >>> fibonacci(100) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] - -If you can't use it, its kind of your problem, not mine! diff --git a/participants/scipy_003/pr_tutorial/buggy_function.py b/participants/scipy_003/pr_tutorial/buggy_function.py index 6f38a6b..ab5b2fe 100644 --- a/participants/scipy_003/pr_tutorial/buggy_function.py +++ b/participants/scipy_003/pr_tutorial/buggy_function.py @@ -20,7 +20,7 @@ def angle_to_sexigesimal(angle_in_degrees, decimals=3): if math.floor(decimals) != decimals: raise OSError('decimals should be an integer!') - hours_num = angle_in_degrees*24/180 + hours_num = angle_in_degrees*24/360 hours = math.floor(hours_num) min_num = (hours_num - hours)*60