I'm doing a basic programming problem in regards to decision statements. The code should relate to three types of fish with different options whenever each option is inputted. I think most of my code runs properly, except I'm not sure how to format the final, catch-all else that absorbs all incorrect inputs.
My current code works well but the else statement at the bottom is tacked onto every response I give outside of the first input in the solution.
if fish_type == "carnivorous":
fish_size = str(input("Do you have smaller fish already? "))
if fish_size == "yes":
print("This is a bad idea! It'll eat the little ones!")
if fish_size == "no":
print("Great! Enjoy!")
if fish_type == "salt water":
print("Wow, you're a fancy fish parent!")
if fish_type == "community":
fish_number = int(input("How many fish of this species do you already have?\
"))
if fish_number < 3:
print("You should get more than one fish!")
else:
print("Yay, more friends!")
else:
print("I don't think that's a type of fish; maybe you're looking for a \
lizard?")
For example, if I input "carnivorous" I am routed correctly to the carnivorous if statements, but when I answer "yes" or "no" my else statement is formatted incorrectly. Thanks for your help!