public
Description: repository for the code featured in the blog
Homepage: http://python.genedrift.org
Clone URL: git://github.com/nuin/beginning-python-for-bioinformatics.git
Search Repo:
Paulo Nuin (author)
Fri May 09 10:57:48 -0700 2008
commit  bff13f0a739d8c120b8b789154a28a6e0bd3fe85
tree    ff0396d935751ea9a0c1d8a339a848ac0c2310e3
parent  f3a50a14796a2e7127a94e5107518f3340e05b40
100755 13 lines (9 sloc) 0.252 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env python
 
'''simple script to open a file and print all lines'''
 
#assigning a filename to a variable
dnafile = "AY162388.seq"
 
#opening the file
file = open(dnafile, 'r')
 
#printing each line of the file
for line in file:
    print line,