I dont want the name of the array, i want the name of the variable that.
x = 1
y = 2
z = 3
priority = [ x, y, z].
after the for loop, in console should appear:
[z y x]
jajajajaja hope u can help me!
print "[", z, " ", y, " ", x, "]"
The above will print '[z y x]' as you asked, but the x, y and z will be replaced with the values of x, y and z variables.
if x,y,z are global variables you can print the name of the global variables with
or new syntax
i guess for local variables there is no other way as to write the names as strings like in the previos posts