Jan-20-2017, 01:05 PM
Hello,
It would fit this forum better if you used code tags for the part of your post that contains code. And to change your thread title into something more meaningful. You can edit your post.
if answer == yes
compares variable answer and variable yes. Your variable yes does not appear before, so Python doesn't recognize it.
However, I believe your intention was to use yes as a string. In that case you should put it in quotes ('yes' or "yes").
It would fit this forum better if you used code tags for the part of your post that contains code. And to change your thread title into something more meaningful. You can edit your post.
if answer == yes
compares variable answer and variable yes. Your variable yes does not appear before, so Python doesn't recognize it.
However, I believe your intention was to use yes as a string. In that case you should put it in quotes ('yes' or "yes").