[Solved] how do i get a value from a dictionnary format (‘B’,’A’):value


First of all you need to correct this:

d= {'D', 'V'): -5, (...) >> d= {('D', 'V'): -5, (...)

after doing it you just need to call it as:
return d[('S', 'X')] or print d[('S', 'X')]

This should work. Otherwise just let us know

1

solved how do i get a value from a dictionnary format (‘B’,’A’):value