Hi Everyone---New programmer. I am trying to create a program that helps women locate good products for their hair type. I just got started and I am running into a few issues. If my code makes sense I am trying to display a specific response depending on the letter answer they give. Unfortunately my code keeps printing out all the answers at once, no matter which letter is selected. I have posted the code below and the errors that I am getting. I am almost positive there is an issue with my if statements:
print ("Let's help you choose you hair texture") print ("") Hair_Quiz = input("What is your hair color? ") print ("") if Hair_Quiz == "black" or " dark brown": print (" A) Upper case S shape curl") print (" B) Coarse Upper case S springy ringlets") print (" C) Tight corkscrew like curls similiar to the size of a straw or pencil") print (" D) Thick, coarse S shaped springs coils similiar to the size of a coffee straw") print (" E) Tightly packed dense springy coils that have a definite curl shape") print (" F) Densly packed coils simialir to the shape of a Z") print ("") q1 = input("What kind of curls do you have? ") if q1 == "A" or "a": print (" You have 3A textured hair") if q1 == "B" or "b": print ("You have 3B textured hair") if q1 == "C" or "c": print ("You have 3C textured hair") if q1 == "D" or "d": print ("You have 4A textured hair") if q1 == "E" or "e": print ("You have 4B textured hair") if q1 == "F" or "f": print ("You have 4C textured hair")What is happening when I run the module:
Output: Let's help you choose you hair texture
What is your hair color? black
A) Upper case S shape curl
B) Coarse Upper case S springy ringlets
C) Tight corkscrew like curls similiar to the size of a straw or pencil
D) Thick, coarse S shaped springs coils similiar to the size of a coffee straw
E) Tightly packed dense springy coils that have a definite curl shape
F) Densly packed coils simialir to the shape of a Z
What kind of curls do you have? A
You have 3A textured hair
You have 3B textured hair
You have 3C textured hair
You have 4A textured hair
You have 4B textured hair
You have 4C textured hair