[Tutor] I/O error (?)
Luke Paireepinart
rabidpoobear at gmail.com
Wed Jul 11 22:14:37 CEST 2007
elis aeris wrote:
> oh in this case they actually aren't possible to be listized, because
> they are just place holders for quite a number of other names of
> variables and stuff :)
That is untrue.
You can put any variables into a list that you want.
For example:
x = 'hello'
b = 42
abba = 0xABBA
Then you can do this:
mylist = [x,b,abba]
and print from the list.
-Luke
More information about the Tutor
mailing list