Use dictionaries to accomplish this. Dictionaries are stores of keys and values.
>>> dct ={'x':1,'y':2,'z':3}>>> dct
{'y':2,'x':1,'z':3}>>> dct["y"]2
down vote accepted
|
Use dictionaries to accomplish this. Dictionaries are stores of keys and values.
|