It is first time that I faced such kind of problem. Hope you guys can help me.
Basically I have:
months= {"01": "January","02": "February","03": "March","04": "April","05": "May","06": "June","07": "July","08": "August","09": "September","10": "October","11": "November","12": "December"}
x=[]
my_xticks = []
for key in months.keys():
x.append(int(key))
for value in months.values():
my_xticks.append(value)
Every month of the year in dictionary. But when I prited my x
and y
list, I saw that they changed its order.
Then I checked via (pythontutor.com) into global frame of this code, and saw this:
How can I change it, to add(append) with right order into my list ?