fruits = [‘banana’, ‘apple’, ‘orange’, ‘tomato’, ‘pear’, ‘grape’]
print ‘You have…’
guess = raw_input(“enter your fruit :”)
for f in fruits:
if guess == f:
if f == 'tomato':
print 'A tomato is not a fruit!' # (It actually is.)
break
print 'A', f
else:
print 'A fine selection of fruits!'
break