A program tests an answer, and the test has a common bug. The program also shows the value that it tested. answer = "no" reply = answer == "yes" or "y" if reply: print("accepted", reply) else: print("refused", reply) What does the program print?
Log in to join the discussion.
Loading…