Skip to content
DeepForge
by svx
Learn
Practice
Compete
More
0/5730 solved
Search
⌘K
Sync
Playground
A scratch pad that runs Python locally via Pyodide.
Examples
Loads over the current code
Matrix multiply
Softmax
Gradient step
Hello, tensors
Clear
Python
Pyodide not loaded
def matmul(a, b): rows = len(a) inner = len(b) cols = len(b[0]) result = [[0] * cols for _ in range(rows)] for i in range(rows): for k in range(inner): for j in range(cols): result[i][j] += a[i][k] * b[k][j] return result A = [[1, 2, 3], [4, 5, 6]] B = [[7, 8], [9, 10], [11, 12]] for row in matmul(A, B): print(row)
Output
Idle
Press Run to execute your snippet.
Run
⌘↵
Clear output