Jul-04-2018, 10:35 PM
You can use a dictionary directly.
Work with dictionaries in python is very important.
Work with dictionaries in python is very important.
d_moves = {'a': 5, 'b': 3, 'c': 2, 'd': 2, 'e': 5, 'f': 3} # To access a value of a key: d[key] = value print(d_moves['a']) # <- prints 5