I'm a total noob when it comes to programming so my question probably has a simple solution.
I'm trying to create a basic program where I input a vegetable and the computer tells me at what temperature and for how long I need to cook it for.
Here's the code I wrote:
veg = input('Which vegetable would you like to roast? ')
if veg == 'bell pepper' or 'zucchini' or 'eggplant':
print('400 degrees for 20 min.')
if veg == 'broccoli':
print('400 degrees for 25 min.')
if veg == 'asparagus':
print('425 degrees for 15 min.')
if veg == 'potato':
print('400 degrees for 30 min.')
The problem is when I input broccoli, asparagus, or potato, it prints out the right time and temp but it also prints out the first line: "400 degrees for 20 min." I expected it to only print out the requested information.
Help is appreciated!