do instead something more pythonic:
if ans.lower() in ['no', 'yes']:
and use elif instead of doing another if verification.
elif
2.1m questions
2.1m answers
60 comments
57.0k users