mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Set the Python file maximum line length to 88 characters (#2122)
* flake8 --max-line-length=88 * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
|
||||
2. Calculates the fibonacci sequence with a formula
|
||||
an = [ Phin - (phi)n ]/Sqrt[5]
|
||||
reference-->Su, Francis E., et al. "Fibonacci Number Formula." Math Fun Facts. <http://www.math.hmc.edu/funfacts>
|
||||
reference-->Su, Francis E., et al. "Fibonacci Number Formula." Math Fun Facts.
|
||||
<http://www.math.hmc.edu/funfacts>
|
||||
"""
|
||||
import math
|
||||
import functools
|
||||
@ -71,11 +72,13 @@ def _check_number_input(n, min_thresh, max_thresh=None):
|
||||
print("Incorrect Input: number must not be less than 0")
|
||||
except ValueTooSmallError:
|
||||
print(
|
||||
f"Incorrect Input: input number must be > {min_thresh} for the recursive calculation"
|
||||
f"Incorrect Input: input number must be > {min_thresh} for the recursive "
|
||||
"calculation"
|
||||
)
|
||||
except ValueTooLargeError:
|
||||
print(
|
||||
f"Incorrect Input: input number must be < {max_thresh} for the recursive calculation"
|
||||
f"Incorrect Input: input number must be < {max_thresh} for the recursive "
|
||||
"calculation"
|
||||
)
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user