Re: String Attribute

2015-07-29 Thread John Strick
fname = raw_input("Enter file name: ") if len(fname) < 1 : fname = "mbox-short.txt" for line in fname: line = line.strip() if not line.startwith('From '): continue line = line.split() count = count + 1 You need to actually open t

Re: String Attribute

2015-07-29 Thread Terry Reedy
On 7/28/2015 7:38 PM, ltc.hots...@gmail.com wrote: What is the source of the syntax error to the String Attribute? Go to the following URL links and view a copy of the raw data file code and sample data: 1.) http://tinyurl.com/p2xxxhl 2.) http://tinyurl.com/nclg6pq If you want help here

String Attribute

2015-07-29 Thread ltc.hotspot
Hi Everyone: What is the source of the syntax error to the String Attribute? Go to the following URL links and view a copy of the raw data file code and sample data: 1.) http://tinyurl.com/p2xxxhl 2.) http://tinyurl.com/nclg6pq Here is the desired output: stephen.marqu...@uct.ac.za