I am a beginner at programming and I am trying to get my program to work. In my program I ask two questions from the user and if both answers == "1", then my variable A should change to "Blue" However, it's not working. Could someone tell me why?
Thanks.
print("Q1")
A = input(">>>")
if A == "1":
A = "Red"
print("Q2")
B = input(">>>")
if B == "1":
B = "Red"
if A == "1" and B == "1":
A = "Blue"
print(A)
A = "Red"so it no longer is "1".