Define a generator yielding fibonacci numbers.
Define a generator function fib() that yields fibonacci numbers (0, 1, 1, 2, 3, ...).
Use it to print the 10th fibonacci number (0-indexed).
Expected output: 55
Sign in to save your code and track progress across devices.