janboone / applied-economics

course material for the course applied economics
17 stars 21 forks source link

Question on notebook 'The Market' #23

Closed florisvanlaarhoven closed 4 years ago

florisvanlaarhoven commented 4 years ago

Hi,

In the following code, why do we use index 0 after the price in the print-command?

price = optimize.fsolve(lambda x: excess_demand(x,valuations,number_of_goods), 120) print("{0: .2f}".format(price[0]))

Thank you