data1 = [1,2,3,4,5]
data2 = [7,8,9,10,11]
x = data1
y = data2
What I required are the strings of above variable as follows:
xlabel = 'data1'
ylabel = 'data2'
Rather than writing manually, how can I call using x like below:
xlabel = str(x)
But above is wrong. So, how to do?
xlabel =???
Is there a pythonic way of doing it?