It's Dangerous to Go Alone! Take This


#1



inventory['gold'] = [int(inventory['gold'][0]) + 50] 
 
i have no ideal how correctly syntax this line to work out well


#2

here:

[int(inventory['gold'][0]) + 50]

why the outer square brackets?

why use int(), its already an integer.

and why [0]? Please explain this things so i can tell you why its wrong


#3

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