It's Dangerous to Go Alone! Take This


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



[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


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