[Tutor] variables into a dictionary

nano nano@intermatik.co.id
11 Oct 2002 16:13:02 +0700


thanks to all your help,
i'm sorry if i can't explain my problem clearly. but Magnus' mail have
solved my problem. i just know that there is an object named 'locals'.
that's just all what i need.
thanks again,

nano'

On Thu, 2002-10-10 at 08:55, nano wrote:
> hello pythoners,
> i have some variables here:
> one = 1
> three = 4
> six = 6
> 
> how can i assign those vars into a dictionary
> numbers={'one':one,'three':three,'six':six}
> 
> that would be all for now,
> TIA
> 
> nano'
> 
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>