Python reads like English.

print('Hello World')
≈0%
of the world speaks English.

Everyone else has to learn English to learn Python.

What if it read like yours?

print('Hello World')
EspañolΕλληνικά中文کوردی
Introducing
UniPy
Code, translate, and run Python in 5 more languages.
EnglishEspañol→ English .py
print('Hello World')
x = 3
for i in range(x):
    print(i)
    if i % 2 == 0:
        print('even')
01Translate the terms
02Map back to Python
03Run it

Translate every term.

222 built-in functions and modules, expanded, machine-translated, then corrected by native speakers.

PYTHONSPANISHGREEKMANDARINKURDISH
printimprimirτύπωσε打印چاپکردن
integerenteroακέραιη整数ژمارەیەکی تەواو
Syntax ErrorError de sintaxisΣυντακτικό λάθος语法错误هەڵەی ڕستەسازی

Map it back to Python.

The interpreter swaps each term for its English twin, writes a new .py file, and runs it.

imprimir→print para→for en→in rango→range si→if
deterministicstrings untouchedno code lost in translation

Same code, same output.

Write in either editor and translate both ways.

OUTPUT · ENGLISH
OUTPUT · ESPAÑOL
Machine translation, out of the box

222 Python terms. Six languages.

Share of terms translated correctly, before native speakers stepped in.

A baseline — with significant room for improvement in lower-resourced languages.
Next

Beyond the standard library.

Towards a Universal Python: Translating the Natural Modality of Python into Other Human Languages

Joshua Otten · Antonios Anastasopoulos · Kevin Moran
ICSME 2023 · IEEE International Conference on Software Maintenance and Evolution (NIER)