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)
Wed May 07 12:13:13 -0700 2008
commit  f3a50a14796a2e7127a94e5107518f3340e05b40
tree    5febe0b57f718d565b6d0050eb1e4d869768014c
parent  0471e0dfd8fe9afe239b67aeb6bcd41a719c5f88
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,