import time x = 0 y = time.time() while (x != 1): aba = int(input("aba: ")); ima = int(input("ima: ")); yeled = int(input("yeled: ")); if aba != 45: x = 0 print("wrong answer") elif ima != 42: x = 0 print("wrong answer") elif yeled != 15: x = 0 print("wrong answer") else: x = 1 print("correct answer!") z = time.time() print("it took you about", z-y, "seconds to answer correctly")