Enumerating words and Adding integer, character and string

dont bother dontbotherworld at yahoo.com
Fri Mar 5 22:15:17 EST 2004


1. How do I make a vector of words in a file.
Ex:
File has 

Alpha
Beta 
Gamma

I want to have this file:
1 Alpha
2 Beta
3 Gamma

I just dont want to write it/print it instead I want a
mapping. A vector kind of thing whose first attribute
is interger second is the 'word'


2. How to I create a string for example by adding:

s=1 + ":" + "dont"

this does not work if I normally try to concatenate
and write to a file.

Any help is appreciated
Thanks
Dont

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com




More information about the Python-list mailing list