I want to know if its possible to put two variables into one if statement, all in one block for each level including current_text variable and answers variable. I want to make the code shorter it has too many "if". For example to put:
if level in easy:
current_text = easy_level
answers = easy_answers
This is the code:
if level in easy:
current_text = easy_level
if level in medium:
current_text = medium_level
if level in hard:
current_text = hard_level
if level in easy:
answers = easy_answers
if level in medium:
answers = medium_answers
if level in hard:
answers = hard_answers
ask_questions(current_text, answers)
Thanks