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!