Keshav Anand cc8c8d9f7b
All checks were successful
Pack Validation CI / validate (push) Successful in 7s
Publish Language Pack / verify (push) Successful in 7s
Publish Language Pack / publish (push) Successful in 13s
added error messages section to fix issues
2026-06-13 13:16:02 -04:00
2026-05-19 17:33:13 -05:00
2026-06-13 11:17:53 -05:00

foreignthon-te

Telugu language pack for ForeignThon — write Python in తెలుగు.


Install

pip install foreignthon foreignthon-te

Example

fizzbuzz.te.py

రతి i పల పరిి(1, 21):
    ఒకవ i % 15 == 0:
        ("FizzBuzz")
    కప_ఒకవ i % 3 == 0:
        ("Fizz")
    కప_ఒకవ i % 5 == 0:
        ("Buzz")
    ిపక:
        (i)

Compiles to standard Python:

for i in range(1, 21):
    if i % 15 == 0:
        print("FizzBuzz")
    elif i % 3 == 0:
        print("Fizz")
    elif i % 5 == 0:
        print("Buzz")
    else:
        print(i)

Run it directly without compiling first:

fpy run fizzbuzz.te.py

Keyword reference

Python తెలుగు
if ఒకవేళ
else లేనిపక్షంలో
elif లేకపోతే_ఒకవేళ
for ప్రతి
while ఎంతవరకు
def రూపొందించు
class మాదిరి
return ఇవ్వు
import చేర్చు
True అవును
False కాదు_విలువ
None శూన్యం
print చూపు
input అడుగు
len పొడవు
range పరిధి

The full mapping is in te.json.


Postfix syntax

This pack supports the @@ postfix operator for natural SOV word order. Instead of writing the keyword first:

ఒకవ x > 0:
    (x)

You can write it in natural Telugu order — condition first, keyword after:

x > 0 @@ఒకవ:
    (x)

Both compile to the same Python. Decompile with postfix output using:

fpy decompile script.py --lang te --postfix

See Postfix Syntax for full details.


Start a project

fpy new myproject --lang te
cd myproject
fpy run src/main.te.py

Documentation

foreignthon.keshavanand.net


Contributing

Found a missing translation or a better keyword for your language? Open an issue or PR — no access to the core repo is needed.


License

GPL v3

Description
No description provided
Readme GPL-3.0 70 KiB
v0.1.1 Latest
2026-06-13 17:16:18 +00:00
Languages
Python 100%