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 break_words(stuff): | |
"""This function will break up words for us.""" | |
words = stuff.split(' ') | |
return words | |
def sort_words(words): | |
"""Sorts the words.""" | |
return sorted(words) | |
def print_first_word(words): |
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 break_words(stuff): | |
"""This function will break up words for us.""" | |
words = stuff.split(' ') | |
return words | |
def sort_words(words): | |
"""Sorts the words.""" | |
return sorted(words) | |
def print_first_word(words): |
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
the_count = [1, 2, 3, 4, 5] | |
fruits = ['apples', 'oranges', 'pears', 'apricots'] | |
change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] | |
#this first kind of for-loop goes through a list | |
for number in the_count: | |
print "This is count %d" % number | |
#same as above | |
for fruit in fruits: |
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
#!/bin/sh | |
# | |
# $Id: update-wordpress.sh 393 2008-06-19 10:29:18Z vengmark $ | |
# | |
# NAME | |
# update-wordpress.sh - Update WordPress to latest stable version. | |
# | |
# SYNOPSIS | |
# update-wordpress.sh [options] | |
# |