14. Its Dangerous to go allone! stuck on the 'gold' line


#1

Hey guys, im stuck on this exercise and i dont get the error text right ...

this is my code:

inventory['pocket'] = ['seashell', 'strange berry', 'lint']

inventory['backpack'].sort()

inventory['backpack'].remove('dagger')

inventory['gold'] =+ 50

the error message i receive is:

Make sure to add 50 to the gold total!

what does this mean??

thx in advance


#2

To add 50 Gold to the total

the =+ will need to be swapped around to look like this: +=


#3

ah ok thx :slight_smile:

i found another possibility by myself:

`python

inventory['gold'] = 500 + 50

but i like your solution way more


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.