Confused by D&D Character

Looks like I’m the only one who was confused by the description, though. I interpreted the test ‘random ability is within range’ as ability() should return one of the character’s abilities at random. So I made it return a random element from self.__dict__.
After looking through the community solutions, ability() is actually supposed to be the stat generator. :laughing:
But hey, it made me learn that every object stores its fields in a dict.

4 Likes