TinkerSign in

Python, ready whenever you are.

Write scripts, run them, poke at individual functions, draw charts and run your tests — all in the browser, saved to your account.

Open workspace
main.py
def fib(n: int) -> int:
    return n if n < 2 else fib(n-1) + fib(n-2)

print([fib(i) for i in range(10)])
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]