I'm new to programming and so I'm trying out some stuff to see if I actually understood. I was able to make this "program" non-case sensitive, but really poorly (since I had to make 3 variables for the same answer, just to make it non-case sensitive). How can I make this code better?
fav_color = "Red"
fav_color2 = "RED"
fav_color3 = "red"
guess_count = 0
guess_limit = 3
while guess_count < guess_limit:
x = input("What's Carlos' favorite color? ")
guess_count += 1
if x == fav_color:
print("You win!")
break
if x == fav_color2:
print("You win!")
break
if x == fav_color3:
print("You win!")
break