I need to print in console the name of the value insted of the value itself after a "for loop" , how can i do it?
have a nice day!
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!
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