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.
Created at: 2019/01/12 07:32; Updated at: 2019/01/14 11:44
The question is resolved.