[Solved] String indices must be integers (error) when accessing dictionary [closed]


Why do you populate the Player object with ‘magic’ shouldn’t is be

Person = Player(200, 100, 60, 40, magic)

Otherwise it would be interpreted as string.

1

solved String indices must be integers (error) when accessing dictionary [closed]