Permalink
Browse files

added exercise 15 and sample text file

  • Loading branch information...
mwarkentin committed Jan 9, 2011
1 parent 928b223 commit 843d396a2382b63dd9e6aaba6874cf671df7f3eb
Showing with 18 additions and 0 deletions.
  1. +15 −0 ex15.py
  2. +3 −0 ex15_sample.txt
View
15 ex15.py
@@ -0,0 +1,15 @@
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" % filename
print txt.read()
print "I'll also ask you to type it again:"
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
View
@@ -0,0 +1,3 @@
This is stuff I typed into a file.
It is really cool stuff.
Lots and lots of fun to have in here.

0 comments on commit 843d396

Please sign in to comment.