def item_order(order):
new_order = order.split()
sal = 0
wat = 0
hum = 0
for a in range(len(new_order)):
if new_order[a] == 'salad':
sal = sal + 1
elif new_order[a] == 'water':
wat = wat + 1
elif new_order[a] == 'hamburger':
hum = hum + 1
return ('salad:' + str(sal) + ' ' + 'hamburger:' + str(hum) + ' ' +'water:' + str(wat))
1
solved I need to use a function in order to get a return instead printing the output