'Can i know how to print(inside the stars) without it being part of the for loop(In python language)

Can I know how to print without it being part of the for loop(In python language).

what_is_enzymes = input(f"Ok now...{answer_student1} answer me. What is an enzyme?") list_question1 = what_is_enzymes.split() needed_words = ["catalyst","biological","speed","up","rate","chemical","reaction"] for word in needed_words: if word in list_question1: print("Your answer is correct") else: print("I am sorry but your answer is incorrect") enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source