printing variables
Fredrik Lundh
fredrik at pythonware.com
Thu Oct 5 23:02:54 EDT 2006
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>
More information about the Python-list
mailing list