Re: variable sub in a list- how to

2007-06-21 Thread Gabriel Genellina
En Thu, 21 Jun 2007 22:16:59 -0300, hari sirigibathina  
<[EMAIL PROTECTED]> escribió:

> How can I substitute a variable into a list ?
> ex:
> list()
> var = 'Prog'
> list.append($Prog) //error occur here

Considering the usage of // and $Prog (btw, did you meant $var?) I think  
you should start by reading some introductory texts, like the Python  
Tutorial  or Dive Into Python  
, to learn how things are done in Python.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list


variable sub in a list- how to

2007-06-21 Thread hari sirigibathina

D-
How can I substitute a variable into a list ?
ex:
list()
var = 'Prog'
list.append($Prog) //error occur here


--
Warm Regards,

Hari
-- 
http://mail.python.org/mailman/listinfo/python-list