Please help.

John Ladasky john_ladasky at sbcglobal.net
Mon Feb 9 13:08:44 EST 2015


On Monday, February 9, 2015 at 9:44:16 AM UTC-8, chim... at gmail.com 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.



More information about the Python-list mailing list