Hoarding gold (python)

Continuing the discussion from [SOLVED] Hoarding Gold (Python):

I used the same exact code as @TheLonelyKing but it is going straight to Naria and saying “27”

Please do not create new topics while an existing one is still open. If you are having issues you would like help with, you should specify these and post your code so that the forum can assist.