Online Python Compiler

Python
num_terms = 10
fibonacci = [0, 1]

while len(fibonacci) < num_terms:
  next_term = fibonacci[-1] + fibonacci[-2]
  fibonacci.append(next_term)
  
print(fibonacci)
Click Run or press shift + ENTER to run code.

Features

  • Write and run Python code from your browser.
  • No need to set up and maintain local Python environments.
  • Our online python compiler supports most popular data science packages like Pandas, Matplotlib, NumPy, Seaborn, Plotly, Altair, SciPy, Scikit-Learn, Polars, and more!
  • Simply import the package you want to use in your code and the app will install it automatically.
  • AI assistant to ask questions about Python or get help in writing code.