[Tutor] printing a word in a line

Lloyd Kvam lkvam@venix.com
Tue, 16 Oct 2001 19:09:43 -0400

Maybe this snippet helps:

line = "Now is the time for all good men to come to the aid of their country"
x = line.split(' ')[4]
print x

How do you know the specific location?  Is it a word count?

> tonycervone wrote:
> How do I read a text file and then print the word that is located in a specific location in the first line of that  text ? thank you in advance.

Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice:	603-443-6155
fax:	801-459-9582