I have the following piece of code in Python 3.4
message = {'function':'TIME_SERIES_INTRADAY',
'symbol':'MSFT',
'interval':'15min',
'apikey':'demo'}
for key1 in message:
print(key1)
The above code is always printing the keys in different order every time I run it. Is there a way to make it in order as it is assigned?