num_terms = 10 fibonacci = [0, 1] while len(fibonacci) < num_terms: next_term = fibonacci[-1] + fibonacci[-2] fibonacci.append(next_term) print(fibonacci)
No installation needed. Import any package, run code instantly, and share your work with a single link.
Powered by Ace editor — syntax highlighting, autocomplete, and linting built in.
Just import — NumPy, Pandas, Matplotlib, and 250+ packages install automatically.
Ask the AI to explain, debug, or rewrite your code. Powered by the latest models.
Share your fiddles with a unique link. Premium users can keep them private.
Access files directly from your computer — read and write local files from your code.
Learn Python with interactive tutorials and level up with coding challenges.
Just import — packages are detected and installed automatically. No pip, no venv, no conda, no setup.
Powerful data analysis and manipulation with DataFrames.
Fast numerical computing with N-dimensional arrays.
Publication-quality plots and charts.
Machine learning — classification, regression, clustering.
Interactive, web-ready charts and dashboards.
Scientific computing — stats, optimization, signal processing.
Statistical data visualization built on Matplotlib.
Run SQL queries directly on DataFrames and files.
Gradient boosting for structured/tabular data.
Statistical models, tests, and data exploration.
Declarative statistical visualization.
Interactive visualizations for modern browsers.
$99/year
$49/year
$0/year
Popular data science packages like pandas, scipy, scikit-learn, matplotlib, seaborn, plotly, altair, bokeh, panel, statsmodels, dask, xgboost, duckdb, and more are supported out of the box. Check out the full list of packages here.
Python Fiddle provides a web-based IDE where you can start writing Python code quickly without having to set up a local development environment. Our code editor is powered by Ace, a high performance code editor for the web. You can write and run your Python code in any web browser of your choice.
Python Fiddle offers an online Python compiler so you can run your Python code directly from the online editor. Code is executed with Pyodide, a port of CPython to WebAssembly/Emscripten. Some functionality in Python may not be available or may not work as expected.
Run python code from websites like stackoverflow.com, ChatGPT, github.com, geeksforgeeks.org, and pastebin.com with the Python Fiddle Chrome extension. The extension adds a "Run on python-fiddle.com" button to python code blocks on these websites. Simply click on the button and the code will be copied to python-fiddle.com and executed.
You can upload files or open a folder from your computer to access your own files in your code. This feature is useful for working with data stored on your computer.
Embed interactive Python notebooks on Medium or any other website that supports embed.ly. Click on the Share button, copy the link to your saved fiddles and simply paste on Medium to create an interactive embed. Visitors to your blog/website can run the code, modify it, and see the output instantly. It's a great way to engage your audience and make your content more interactive.
Add support for executing your Jupyter notebooks on python-fiddle.com by including a Python Fiddle badge in your Jupyter notebook or anywhere with support for markdown or HTML.
Share your code with others by clicking on the Share button and copying the link. Anyone with the link can view and run your code. It's an excellent way to showcase your skills, seek help from the Python community, or teach Python to your friends!