@tasklets.tasklet<EOL>def fibonacci(n):
if n <= <NUM_LIT:1>:<EOL><INDENT>raise tasklets.Return(n)<EOL><DEDENT>a = yield fibonacci(n - <NUM_LIT:1>)<EOL>b = yield fibonacci(n - <NUM_LIT:2>)<EOL>raise tasklets.Return(a + b)<EOL>
A recursive Fibonacci to exercise task switching.