Answer:
The solution code is written in Python 3
- gender = input("Enter your gender choices (a. Female b. Male)")
- if(gender == "a"):
- print("Option 5")
- elif(gender == "b"):
- print("Option 7")
- else:
- print("Option 9")
Step-by-step explanation:
Firstly, we can use the input function to prompt user to input their gender choice (Line 1).
Since there are three possibilities how user can give their gender input, we use if-else-if statements to check the input gender choice. If the choice is "a", show "Option 5", if "b" shows "Option 7" and if something else show "Option 9"