|
| 1 | +What is UniversalPython |
| 2 | +======================== |
| 3 | + |
| 4 | +UniversalPython is a **transpiler** that allows you to write Python code using keywords and identifiers in your **native human language**. |
| 5 | + |
| 6 | +It is not a new language, nor a fork of **Python**. It is a thin compatibility layer that translates code written with localized keywords into **standard** **Python**. Your code is executed by the **official** **Python** **interpreter**, and behaves just like any other Python program. |
| 7 | + |
| 8 | +The goal of UniversalPython is to make programming in Python more accessible, especially for beginners and students learning in non-English environments. |
| 9 | + |
| 10 | +Transpiler, Not Interpreter |
| 11 | +--------------------------- |
| 12 | + |
| 13 | +UniversalPython works by **transpiling** code that is, converting it from one form (Python written in a different human language) to another (standard Python source code), before running it. |
| 14 | + |
| 15 | +This means: |
| 16 | + |
| 17 | +- You are still writing **real Python code** |
| 18 | +- Your code will work with **standard Python tools, libraries, and environments** |
| 19 | +- The result is indistinguishable from code written in standard Python |
| 20 | + |
| 21 | +Why This Matters for Learners |
| 22 | +----------------------------- |
| 23 | + |
| 24 | +Python is one of the most widely used languages in education. However, Python's syntax, although simple, is still written in English. |
| 25 | + |
| 26 | +For many learners (who are not from English speaking countries), especially young students or those new to programming, the English vocabulary can be a barrier. **UniversalPython** helps reduce that barrier by translating code to and from the learner’s own language. |
| 27 | + |
| 28 | +This allows learners to focus on **logic and structure**, not foreign keywords. |
| 29 | + |
| 30 | +For example, a French learner might write: |
| 31 | + |
| 32 | +.. code-block:: text |
| 33 | + :linenos: |
| 34 | + |
| 35 | + something = 2 |
| 36 | +
|
| 37 | + si something == 1: |
| 38 | + imprimer ("Hello") |
| 39 | + sinonsi something == 2: |
| 40 | + imprimer ("World") |
| 41 | + sinon: |
| 42 | + imprimer ("Didn't understand...") |
| 43 | +
|
| 44 | +Python will understand it as: |
| 45 | + |
| 46 | +.. code-block:: python |
| 47 | + :linenos: |
| 48 | +
|
| 49 | + something = 2 |
| 50 | +
|
| 51 | + if something == 1: |
| 52 | + print("Hello") |
| 53 | + elif something == 2: |
| 54 | + print("World") |
| 55 | + else: |
| 56 | + print("Didn't understand...") |
| 57 | +
|
| 58 | +
|
0 commit comments