[Tutor] Listing available variables

Mkhanyisi Madlavana mmadlavana at gmail.com
Fri Dec 25 08:50:26 CET 2009


How do I list all the available variables in python. for example if I say:
>>>a = range(10)
>>>b = 16
>>>c = ""
... (some variables)
>>>z = ["this","that","none"]
I then need a command that will list the variables I assigned like:
>>>some_command
a, b, c, ... (some variables), z

Regards
Mkhanyisi


More information about the Tutor mailing list