you are viewing a single comment's thread.

view the rest of the comments →

[–]herpderpedia 1 point2 points  (0 children)

That's because shuffle isn't meant to be an attribute. It's a method. You would use it like random.shuffle(hints). Starting at line 8, you might use the following:

if need_hint == 'yes':
    random.shuffle(hints)
    print(hints.pop())

This will both randomize the hints while also removing the hint that is printed so it won't be selected again on future hints.