brand new to programming here, and having a lot of trouble with a homework problem. Please excuse my lack of understanding and knowledge. Any help would be greatly appreciated! Thank you!! I'm trying to output an if statement, when one of the items I'm calling is not in the list, and the function should print out that item.
def sushi(order):
toppings = ['salmon', 'tuna', 'whitefish']
for item in toppings:
if 'salmon' or 'tuna' or 'whitefish' in toppings:
print('all set')
break
if not item in toppings:
print('Add to this', toppings.append(order))
print('all set')
sushi(['salmon', 'tuna'])
sushi(['salmon', 'tuna', 'tempura'])
I want it to output:
all set
Add to this tempura
all set