Fredrik Lundh wrote:
> [EMAIL PROTECTED] 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...

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

Reply via email to