Python Examples
Interactive code examples for algorithms, data structures, and programming concepts. Run any example instantly in your browser — no setup required.
Data Visualization
Run Matplotlib Online
Plot Python charts and graphs online with Matplotlib — no install, no signup. Free in-browser Matplotlib compiler with NumPy and pandas pre-loaded.
Matplotlib 3D Plot in Python
Create stunning 3D plots in Python with Matplotlib! Learn 3D surface, scatter, wireframe, and contour plots with runnable code — no setup required.
Word Cloud in Python
Create stunning word clouds in Python with the wordcloud library! Step-by-step tutorial with custom colors, shapes, and stopwords — runnable in your browser.
Scientific Computing
NumPy Online Compiler
Run NumPy arrays and matrix operations online with no install and no signup. Free in-browser NumPy compiler with pandas and Matplotlib pre-loaded.
Fourier Transform (FFT) in Python
Learn the Fast Fourier Transform in Python. Decompose signals into frequencies with numpy.fft, plot the spectrum, and filter noise — all runnable in your browser.
Linear Regression in Python (from Scratch)
Build linear regression in Python from scratch with NumPy, then compare to scikit-learn. Step-by-step math, runnable code, and a real plotted fit.
Mandelbrot Set Fractal in Python
Render the Mandelbrot set in Python with NumPy and Matplotlib. Vectorized fractal generation, deep zooms, and Julia sets — runnable in your browser.
Matrix Multiplication in Python
Multiply matrices in Python the right way. Compare @, np.dot, np.matmul, and pure-Python loops with runnable examples — no setup required.
Particle System Simulation in Python
Build a particle system in Python with NumPy and Matplotlib. Simulate fireworks, gravity, and emitters from scratch — runnable instantly in your browser.
Data Science
Run Pandas Online
Run pandas DataFrames online with no install and no signup. Free in-browser Python pandas compiler with NumPy and Matplotlib pre-loaded.
Data Visualization with Matplotlib
Learn data visualization in Python with Matplotlib! A fun guide to creating line plots, scatter plots, and bar charts the recommended object-oriented way.
NumPy Array Operations in Python
Learn NumPy basics in Python! A fun and easy guide to super-fast arrays, matrices, and data science math without using slow for-loops.
Data Analysis with Pandas in Python
Learn Pandas for data analysis in Python! A beginner-friendly guide to DataFrames, filtering data, grouping, and handling messy missing data just like Excel.
Scientific Computing & Optimization with SciPy
Learn Scientific Computing with SciPy in Python! A beginner-friendly guide to optimizing functions, curve fitting, and understanding how AI training works behind the scenes.
Symbolic Mathematics with SymPy
Learn SymPy for pure math in Python! A super fun guide to doing perfect algebra, finding derivatives, calculating integrals, and automatically solving equations.
Algorithms
Breadth-First Search (BFS) in Python
Learn Breadth-First Search (BFS) in Python! A beginner-friendly, fun guide to exploring graphs level by level.
Binary Search in Python
Learn Binary Search in Python! A super fun and beginner-friendly guide to finding elements in a sorted array blazing fast using iterative and recursive code.
Bubble Sort in Python
Learn the Bubble Sort algorithm in Python! Step-by-step visual explanation with beginner-friendly, optimized Python code.
Depth-First Search (DFS) in Python
Learn Depth-First Search (DFS) in Python! A super fun guide to exploring graphs, escaping mazes, and backtracking with recursive and iterative code.
Dijkstra's Algorithm in Python
Learn Dijkstra's algorithm in Python! A beginner-friendly, fun guide to finding the shortest and fastest paths in a weighted graph using heapq.
Fibonacci Sequence in Python
Learn how to code the famous Fibonacci Sequence in Python! A fun, beginner-friendly guide comparing recursion, loops (iteration), and clever memoization.
Insertion Sort in Python
Learn the Insertion Sort algorithm in Python! Beginner-friendly, step-by-step visual explanation with clean, runnable Python code.
Maze Generator and Solver in Python
Generate random mazes in Python and solve them with BFS. Recursive backtracker algorithm, visualized with Matplotlib — runnable instantly in your browser.
Merge Sort in Python
Learn Merge Sort in Python! A fun, beginner-friendly guide to the Divide and Conquer sorting strategy with guaranteed fast performance.
Quick Sort in Python
Learn Quick Sort in Python! A beginner-friendly guide to the famous Divide and Conquer algorithm. See how pivots and partitioning make sorting blazing fast.
Selection Sort in Python
Learn the Selection Sort algorithm in Python! Beginner-friendly, step-by-step visual explanation with clean, runnable Python code.
Two Sum Algorithm in Python
Learn how to solve the classic Two Sum algorithm in Python! An incredibly fun tutorial on using Hash Maps to upgrade your code from slow O(n^2) to blazing fast O(n).
Data Structures
Binary Tree in Python
Learn Binary Trees in Python! A fun, beginner-friendly guide to building trees, inserting nodes, and exploring inorder, preorder, and postorder traversals.
LRU Cache in Python
Learn to build an LRU (Least Recently Used) Cache in Python using OrderedDict. A really fun and simple guide to O(1) time complexity caching!
Reverse Linked List in Python
Learn how to reverse a linked list in Python! An easy, fun, beginner-friendly guide to solving this classic coding interview algorithm. Includes O(1) space iterative code.
Valid Parentheses in Python
Learn how to solve the Valid Parentheses problem using a Stack in Python! A super fun and easy tutorial on matching brackets for technical interviews.
Machine Learning
Confusion Matrix & Classification Metrics in Python
Understand the confusion matrix in Python with scikit-learn. Precision, recall, F1, and accuracy on a plotted heatmap — runnable in your browser, no setup.
Decision Tree Classifier in Python
Build a decision tree classifier in Python with scikit-learn. Train, visualize the actual tree, predict, and learn how to avoid overfitting — runnable in your browser.
K-Means Clustering in Python
Learn K-Means clustering in Python with scikit-learn. Visualize clusters forming, pick the right K with the elbow method, and run it all in your browser.
Logistic Regression in Python
Learn logistic regression in Python with scikit-learn. Binary classification, decision boundary, probabilities, and ROC curve — all explained and runnable in your browser.
Markov Chain Text Generator in Python
Build a Markov chain text generator in Python from scratch. Train on any text, generate new sentences in the same style — no ML libraries needed.
PCA (Principal Component Analysis) in Python
Learn PCA in Python with scikit-learn. Reduce high-dimensional data to 2D, visualize hidden structure, and understand explained variance — runnable in your browser.
Spam Classifier with Naive Bayes in Python
Build a spam email classifier in Python using Multinomial Naive Bayes and TF-IDF. Train, evaluate, and predict on new messages — runnable in your browser.
Build a TF-IDF Chatbot in Python
Build a real chatbot in Python with TF-IDF and cosine similarity. No deep learning required — just scikit-learn, runnable instantly in your browser.
Run Scikit-learn Online
Run scikit-learn models online with no install and no signup. Free in-browser Python sklearn compiler with NumPy and Pandas pre-loaded.