Import strings from .txt and searching for first numeric character - python
Question: I am a total noob with python (programming in fact) but I hope you can help :)

I have a .txt file with a list of strings containing addresses.

I want to import it to Python and then search for the first numberic character
and then create a new column for it...like

input

    
    
    'Elm Street 12' 
    'Baker Street 143'
    

and output

    
    
    'Elm Street 12' , 12
    'Baker Street 143' , 14
    

and save it to .txt.

I am trying to do if from the windows cmd.

Thank you in advance.


Answer: 
    with open('file.txt') as inn:
        for line in inn:
            print "%s %s" % (line, [int(item) for item in line.split(' ') if item.isdigit()])
    

