We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1996215 commit 36e94f0Copy full SHA for 36e94f0
1 file changed
test/example/fib-exec.py
@@ -3,5 +3,6 @@ def fib(x: int) -> int:
3
return 1
4
return fib(x-1) + fib(x-2)
5
6
-exec("print(fib(2))")
+command = "print(fib(2))"
7
+exec(command)
8
print("fib(2)= %d, fib(3) = %d, fib(4) = %d\n" % (fib(2), fib(3), fib(4)))
0 commit comments