Need Python Help.. I am very new to python : ******* <br>
PYTHON guruz Please Help! I am writing a program to get an output for a user input .. User inputs IP address.. I need to display a specific part of the above line. <br> <br>
THANKS IN ADVANCE <br><br>
********/ Got this file /******** <br>  
mot physical /ABC-RD0.CLD/CPQSCWSSF001f1-V.80 { <br>
    poolcoin /ABC-RD0.CLD/123.45.67.890:88 <br>
    ip-protocol tcp <br>
    mask 255.255.255.255 <br>
        /Common/source_addr { <br>
            default yes <br>
mot physical /ABC-RD0.CLD/CPQSCWSSF001f1-V.80 { <br>
    profiles { <br>
        /Common/http { } <br>
        /Common/webserver-tcp-lan-optimized { <br>
            context serverside <br>
} <br>
mot physical /ABC-RD0.CLD/BBQSCPQZ001f1-V.80 { <br>
    poolcoin /ABC-RD0.CLD/123.45.67.890:88 <br>
    ip-protocol tcp <br>
    mask 255.255.255.255 <br>

********/ Want the below output for user input /******** <br>  
User inputs the IP and output should be: <br> <br>
user input: 123.45.67.890<br>
output: CPQSCWSSF001f1 <---------------------------- <br><br>
user input: 123.45.67.890 <br>
output: BBQSCPQZ001f1 <---------------------------- <br> <br>
********/ This is what i have tried /******** <br>  

#!/usr/bin/env python <br> <br>

import re <br> <br

ip = raw_input("Please enter your IP: ") <br>

with open("test.txt") as open file: <br>
    for line in open file: <br>
        for part in line.split(): <br>
            if ip in part: <br>
                print part -1 <br>
