From efd0666ec542705777d07e8c150475354a8d0d77 Mon Sep 17 00:00:00 2001 From: Umesh Joshi Date: Mon, 7 Oct 2024 15:11:16 +0545 Subject: [PATCH] Update controlflow.rst f100 doesn't writes the result.We need to use print(f100) to write the result. --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index fd765e58ff2485..70f383cf8e1305 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -543,7 +543,7 @@ Fibonacci series, instead of printing it:: ... return result ... >>> f100 = fib2(100) # call it - >>> f100 # write the result + >>> print(f100) # write the result [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] This example, as usual, demonstrates some new Python features: