printing variables
s99999999s2003 at yahoo.com
s99999999s2003 at yahoo.com
Thu Oct 5 23:09:36 EDT 2006
Fredrik Lundh wrote:
> s99999999s2003 at yahoo.com wrote:
>
> > say i have variables like these
> >
> > var1 = "blah"
> > var2 = "blahblah"
> > var3 = "blahblahblah"
> > var4 = "...."
> > var5 = "..."..
> >
> > bcos all the variable names start with "var", is there a way to
> > conveniently print those variables out...
>
> do you often (or always) treat these as a collection ? why not just put
> the values in a list (or tuple) instead ?
>
> </F>
Thanks all for the answers. Yup, i think i will use dicts/tuples/lists
instead...
More information about the Python-list
mailing list