Does anyone know how to escape from printing a tomato in the list?
Replace this line with your code. fruits = ['banana', 'apple', 'orange', 'tomato', 'pear', 'grape'] print 'You have...' for f in fruits: if f == 'tomato': print 'A tomato is not a fruit!' # (It actually is.) print 'A', f else: print 'A fine selection of fruits!'