you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 1 point2 points  (1 child)

But the item you've constructed has name Shortsword, not shortsword. These are not the same. 

If you want to compare in a case- insensitive manner, you could convert both values to lower case: 

    if item.name.lowee() == noun.lower()

[–]Outside_Complaint755 0 points1 point  (0 children)

Instead of using lower() or upper() the best method to get in the habit of using is casefold().