Last active
March 1, 2018 19:17
-
-
Save krlittle/70c681821e1031cedffb9a62ae0c1c56 to your computer and use it in GitHub Desktop.
[Python] - a simple callable function to print out items in a list
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
import list_printer | |
days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] | |
list_printer.print_items_in_list(days) |
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
def print_items_in_list(list): | |
for item in list: | |
print (item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment