Breaking Language Barriers in Programming
LangPy is a lexical transpiler that allows you to write Python code using keywords in your native language. It removes the language barrier, making programming more accessible and intuitive for non-English speakers.
π Easier Learning
Learn programming concepts in your native language, making it more intuitive and reducing cognitive load for beginners.
β‘ Rapid Prototyping
Quickly sketch ideas and algorithms using familiar words, then transpile to standard Python when ready.
π§ Better Understanding
Understand loops, conditionals, and data structures more clearly when they're written in your language.
π Seamless Migration
Easily transition to standard Python - your code transpiles to clean, readable Python that runs natively.
Example
total = 0
para num en numeros:
total = total + num
retornar total / longitud(numeros)
datos = [10, 20, 30, 40]
imprimir("Promedio:", calcular_promedio(datos))
Supported Keywords by Language
| Spanish | Python | Category |
|---|---|---|
| si | if | Control Flow |
| sino | else | Control Flow |
| sino_si | elif | Control Flow |
| mientras | while | Loops |
| para | for | Loops |
| romper | break | Control |
| continuar | continue | Control |
| retornar | return | Functions |
| definir | def | Functions |
| clase | class | OOP |
| verdadero | True | Boolean |
| falso | False | Boolean |
| ninguno | None | Null |
| y | and | Operators |
| o | or | Operators |
| no | not | Operators |
| importar | import | Modules |
| desde | from | Modules |
| imprimir | Built-ins | |
| longitud | len | Built-ins |
| rango | range | Built-ins |
| Portuguese | Python | Category |
|---|---|---|
| se | if | Control Flow |
| senao | else | Control Flow |
| senao_se | elif | Control Flow |
| enquanto | while | Loops |
| para | for | Loops |
| quebrar | break | Control |
| continuar | continue | Control |
| retornar | return | Functions |
| definir | def | Functions |
| classe | class | OOP |
| verdadeiro | True | Boolean |
| falso | False | Boolean |
| nenhum | None | Null |
| e | and | Operators |
| ou | or | Operators |
| nao | not | Operators |
| importar | import | Modules |
| de | from | Modules |
| imprimir | Built-ins | |
| comprimento | len | Built-ins |
| intervalo | range | Built-ins |
| French | Python | Category |
|---|---|---|
| si | if | Control Flow |
| sinon | else | Control Flow |
| sinon_si | elif | Control Flow |
| tant_que | while | Loops |
| pour | for | Loops |
| rompre | break | Control |
| continuer | continue | Control |
| retourner | return | Functions |
| definir | def | Functions |
| classe | class | OOP |
| vrai | True | Boolean |
| faux | False | Boolean |
| aucun | None | Null |
| et | and | Operators |
| ou | or | Operators |
| non | not | Operators |
| importer | import | Modules |
| depuis | from | Modules |
| imprimer | Built-ins | |
| longueur | len | Built-ins |
| intervalle | range | Built-ins |
Get Started
Install LangPy and start coding in your language:
pip install langpy
# Create a file (ejemplo.pyes for Spanish)
definir saludar():
imprimir("Β‘Hola Mundo!")
saludar()
# Run it
langpy ejemplo.pyes