We value your privacy

We use cookies to run the platform, understand usage, and improve your experience. You can accept all, reject non-essential, or choose what to allow. See our Cookie Policy and Privacy Policy.

Sandbox

A free playground for Python and ML code. No challenge, no grading โ€” just run, tweak, and save your experiments.

Challenge mode

Pair-program in real time

Host or join a shared edit room with a peer or live tutor.

Python
Output
Run your code to see output here.
AI Code Review

Click Run โ€” after each run, you'll get instant AI feedback on style, optimizations, and any errors.

Available Python libraries

Pre-installed in the in-browser runtime โ€” just import them.

27/27
math
stdlib
import math

Basic mathematical functions (sqrt, sin, log, etc.).

statistics
stdlib
import statistics

Mean, median, stdev, variance and friends.

random
stdlib
import random

Pseudo-random number generation and sampling.

itertools
stdlib
import itertools

Efficient looping building blocks (combinations, permutations, chain).

functools
stdlib
import functools

Higher-order utilities like reduce, lru_cache, partial.

collections
stdlib
import collections

Counter, defaultdict, deque, namedtuple.

datetime
stdlib
import datetime

Dates, times, deltas and formatting.

json
stdlib
import json

Parse and serialize JSON.

re
stdlib
import re

Regular expressions.

string
stdlib
import string

String constants and helpers.

typing
stdlib
import typing

Type hints (List, Dict, Optional, etc.).

dataclasses
stdlib
import dataclasses

Decorator-based data classes.

heapq
stdlib
import heapq

Priority queue / min-heap algorithms.

bisect
stdlib
import bisect

Array bisection algorithms (sorted-list insertion).

io
stdlib
import io

In-memory streams (StringIO, BytesIO).

NumPy
scientific
import numpy

N-dimensional arrays, vectorized math, linear algebra.

SciPy
scientific
import scipy

Scientific algorithms: optimize, stats, signal, linalg.

SymPy
scientific
import sympy

Symbolic math: algebra, calculus, equation solving.

pandas
data
import pandas

DataFrames, CSV/Excel I/O, group-by, time series.

scikit-learn
ml
import sklearn

Classical ML: regression, classification, clustering, preprocessing.

Matplotlib
viz
import matplotlib

Plotting and charts. Use matplotlib.pyplot.

urllib
stdlib
import urllib

URL handling utilities (parsing, requests in stdlib).

requests
web
import requests

HTTP requests (subject to browser CORS in sandbox).

pprint
stdlib
import pprint

Pretty-print Python data structures.

textwrap
stdlib
import textwrap

Text wrapping and indenting.

decimal
stdlib
import decimal

Fixed and floating point arithmetic with arbitrary precision.

fractions
stdlib
import fractions

Rational number arithmetic.

Welcome to paarsh.ai /Academy

Your personal AI-powered learning companion for mastering AI/ML, Embedded Systems, and beyond. Let's take a quick tour of the dock at the top โ€” every icon is a destination.