Why isn’t it global?

Your loop tries to access lastwordd before it is created in checkword.

Leave a Comment