I'm new to python and I've been trying to sort some variables and then print the names of the variables in sorted order, but I can't get further than this.
x = 0
y = 9
z = 3
numbers = [x,y,z]
numbers.sort(reverse=True)
for x in range(len(numbers)):
print(numbers[x])
I want it to print
y
z
x
But I don't know how to do this and I cant seem to find anything online