I know how to do an if statement and elif statement but in this particular code i don't know how. What im trying to do exactly is when the user puts either female or male and a temperature it will show an outfit for that weather depending which gender is chosen. Can anyone help me?
def main(): print("Welcome to Outfitters Boulevard!") print() print("Where your next vacation outfit is just around the corner.") print("================================================") name = input("What is your name?") gender = input("Are you male or female?") favoriteColor = input("What is your favorite color?") temp = int(input("What is the temperature like where you're going?")) print(name + ", you mentioned that you're a female, your favorite color is " + favoriteColor + ",") print("and you're going somewhere with " + str(temp) + " weather.") print("We've got just the outfit for you: ") if temp>84: print("The Perfect Hot Weather Outfit") elif 70 >=temp<= 84: print("The Perfect Warm Weather Outfit") elif 55>=temp<= 69: print("The Perfect Cool Weather Outfit") elif temp <55: print("The Perfect Cold Weather Outfit") main()
elif 70 <= temp <= 84:gendervariable you got from input