A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2010-March/720259.html below:

Variable definition

Variable definition Variable definitionRhodri James rhodri at wildebst.demon.co.uk
Mon Mar 1 18:06:27 EST 2010
On Mon, 01 Mar 2010 18:07:17 -0000, Raphael Mayoraz <maygeo at netplus.ch>  
wrote:

> Thanks for your answer.
> However, your solution changes the key name in the dictionary.
> That's not what I want I need to do. What I want is to define a new
> variable which name is define as a string: 'myPrefx' + key. In the  
> example
> I give, I would get 3 variables:
> myPrefixred = a
> myPrefixgreen = b
> myPrefixblue = c

I repeat my previous question: why?  What problem do you think this will  
solve that will not be more easily solved working with the language rather  
than against it?

-- 
Rhodri James *-* Wildebeeste Herder to the Masses

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4