changeset 0:15b82ccc064b

initial commit
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 05 Feb 2013 16:17:46 +0000
parents
children d6b2e34ab8c0
files data.txt python-intro.py
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data.txt	Tue Feb 05 16:17:46 2013 +0000
@@ -0,0 +1,5 @@
+Date,Species,Count
+2012.04.28,marlin,2
+2012.04.28,turtle,1
+2012.04.28,shark,3
+2012.04.27,marlin,4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python-intro.py	Tue Feb 05 16:17:46 2013 +0000
@@ -0,0 +1,4 @@
+source = open('data.txt', 'r')
+for line in source:
+    print line
+source.close()