From 583c614e6bad41a188bce215aa52af302d7e4ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 19:28:29 +0100 Subject: [PATCH] Fib --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index eafb872..44e7c78 100644 --- a/README.md +++ b/README.md @@ -628,9 +628,7 @@ from functools import lru_cache @lru_cache(maxsize=None) def fib(n): - if n < 2: - return n - return fib(n-1) + fib(n-2) + return n if n < 2 else fib(n-1) + fib(n-2) ``` ```python