Relative Content

Tag Archive for random

How do I make this part of my code accept multiple answers for the condition to be met?

I haven’t touched Python in years and never really learned it in the first place, but I am trying to make a simple question generator for practicing interviewing at my company. My company uses a very large but definite bank of questions and being able to output them at random will help with interview preparation. This part of the code is at the end and either generates another question if you type “Y”, or it gives the pep talk message if anything else is entered. If I wanted to have it accept “y” or something else, what would I need to add to this? I tried a few things, but I can’t figure it out.