Created
November 16, 2014 16:10
-
-
Save maryrosecook/7cca0b83b896ade99f69 to your computer and use it in GitHub Desktop.
Lauren's first program!
This file contains hidden or 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
shopping_list = ["apple", "toothbrush", "banana", "black lava"] | |
shopping_list.append("cheese") | |
shopping_list.reverse() | |
print("Shopping List") | |
for shopping_list_item in shopping_list: | |
if len(shopping_list_item)<7 or shopping_list_item=="black lava": | |
print("-" + shopping_list_item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment