I have been in this for several weeks without success, the objective is through the list to recorer the dictionary or to check until the message you lose, you win or klk appears at the end of the dictionary using only the elements of the list
dic = {
'a':{ 'b': {'c': 'You win'}},
'x':{ 'y':{'z': 'You lose'}},
'r':{ 'q':{'s': 'Klk manin'}}
}
a = ['x','y','z']
dic1 = dic['x']
dic2 = dic1['y']
dic3 = dic2['z']
print(dic3)
Thanks in advance