We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Pn

From Esolang
Jump to navigation Jump to search

Pn is a Python variant created by islptng.

Syntax

It was designed to reduce the keystrokes in Python programming, but not as complex as Pyth.

Instead using indents and newlines, we use brackets and semicolons, just like C.

However, we have "short keywords".

A = and
B = in
C = class
D = def
E = else
F = for
G = int(
H = str(
I = if
J = elif
K = list(
L = lambda
M = len(
N = not
O = or
P = print(
Q = break
R = range(
S = input(
T = try
U = except
V = finally
W = while
X = return
Y = yield
Z = continue

Interpreter

Try it online!