• Help.

Question related to mission Best Stock

 

my code: def beststock(data): max = bool(0) bestposition = ' ' for i in data: if data[i] > max: max = data[i] bestposition = i print(bestposition)

I do not understand why there is an error.