Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> the_count=[1,2,3,4,5]
>>> fruit=['apples','oranges','pears','apricots']
>>> for fruit in fruits:
	print "A fruit of type %s is:" %fruit


Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    for fruit in fruits:
NameError: name 'fruits' is not defined
>>> fruits=['apples','oranges','pears','apricots']
>>> for fruit in fruits:
	print " A fruit of tyoe %s is:"%fruit

	
 A fruit of tyoe apples is:
 A fruit of tyoe oranges is:
 A fruit of tyoe pears is:
 A fruit of tyoe apricots is:
>>> change=[1,'pennies',2,'dimes',3,'quarters']
>>> for i in change:
	print "i got %r" %i

	
i got 1
i got 'pennies'
i got 2
i got 'dimes'
i got 3
i got 'quarters'
>>> the_count=[1,2,3,4,5]
>>> for number in the_count:
	print "the count is %s" %number

	
the count is 1
the count is 2
the count is 3
the count is 4
the count is 5
>>> elements=[]
>>> for i in range(0,6)
SyntaxError: invalid syntax
>>> for i in range(0,6):
	print "adding %d to the list."%i
	elements.append(i)

	
adding 0 to the list.
adding 1 to the list.
adding 2 to the list.
adding 3 to the list.
adding 4 to the list.
adding 5 to the list.
>>> for i in elements:
	print "elememt was %d" %i

	
elememt was 0
elememt was 1
elememt was 2
elememt was 3
elememt was 4
elememt was 5
>>> 

>>> i=0
>>> numbers=[]
>>> while i<6:
	print "at the top i is %d" %i
	numbers.append(i)
	i=i+1
	print "Numbers now:",numbers
	print "At the bottom i is %d " %i
	print "the numbers:"
	for num in numbers:
		print num

		
at the top i is 0
Numbers now: [0]
At the bottom i is 1 
the numbers:
0
at the top i is 1
Numbers now: [0, 1]
At the bottom i is 2 
the numbers:
0
1
at the top i is 2
Numbers now: [0, 1, 2]
At the bottom i is 3 
the numbers:
0
1
2
at the top i is 3
Numbers now: [0, 1, 2, 3]
At the bottom i is 4 
the numbers:
0
1
2
3
at the top i is 4
Numbers now: [0, 1, 2, 3, 4]
At the bottom i is 5 
the numbers:
0
1
2
3
4
at the top i is 5
Numbers now: [0, 1, 2, 3, 4, 5]
At the bottom i is 6 
the numbers:
0
1
2
3
4
5
>>> #functions practice
>>> def break_words(stuff):
	""" This funcrion will break up words for us:"""
	words=stuff.split('')
	return words

>>> break_words(abracadabra)

Traceback (most recent call last):
  File "<pyshell#49>", line 1, in <module>
    break_words(abracadabra)
NameError: name 'abracadabra' is not defined
>>> def sort_words(words):
	#sorts the words
	return sorted(words)

>>> def print_first_word(words):
	word=words.pop(0)
	print word

	
>>> def print_last_words(words):
	#prints the last word after popping it off
	word=words.pop(0)
	print word

	
>>> def sort_sentence(sentence):
	#takes the full sentence and returns sorted word
	words=break_words(sentence)
	return sort_words(words)

>>> def print_first_and_last(sentence):
	#prints the first and last words of the sentence
	words=break_words(sentence)
	print_first_word(words)'
	
SyntaxError: EOL while scanning string literal
>>> def print_first_and_last(sentence):
	#prints the first and last words of the sentence
	words=break_words(sentence)
	print_first_word(words)
	print_last_word(words)

	
>>> class song(object):
	def__init__(self,lyrics):
		
SyntaxError: invalid syntax
>>> class song(object):
	def __init__(self,lyrics)
	
SyntaxError: invalid syntax
>>> class song(object):
	def __init__(self,lyrics):
		self.lyrics=lyrics
	def sing_me_a_song(self):
		for line in self.lyrics:
			print line
    happy_bday=song(["happy birthday to you, I don't"])
    
  File "<pyshell#84>", line 7
    happy_bday=song(["happy birthday to you, I don't"])
                                                      ^
IndentationError: unindent does not match any outer indentation level
>>> 
