On Monday, February 9, 2015 at 9:44:16 AM UTC-8, [email protected] wrote:
> Hello. Am trying to change the key words to my tribal language. Eg change
> English language: print() to igbo language: de(). I have been stuck for
> months I need a mentor or someone that can guide me and answer some of my
> questions when I get stuck. Thanks..
> I will really appreciate it if someone attends to me.
In Python, functions are bound to names, exactly like other variables are. You
can bind any new name you want to an existing function, like this:
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("English")
English
>>> de = print
>>> de("Igbo")
Igbo
>>> print("Both function names work")
Both function names work
>>> de("Both function names work")
Both function names work
Hope that helps you.
--
https://mail.python.org/mailman/listinfo/python-list