-
-
Save codecademydev/670dc2c725f018b67ba9a1028407da41 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment