Code.io
Now with AI-powered autocomplete

Code. Run. Ship.
From anywhere.

A blazing-fast cloud IDE that runs your code instantly — no setup, no config. Just write and execute in 30+ languages.

2M+Developers
30+Languages
<200msCold start
main.py
1# fibonacci with memoization
2
3def fib(n, memo={}):
4 if n <= 1: return n
5 if n not in memo:
6 memo[n] = fib(n-1) + fib(n-2)
7 return memo[n]
8
9for i in range(10):
10 print(fib(i))
▶ Output: 0 1 1 2 3 5 8 13 21 34182ms