I'm having a lot of trouble with this segment of code:
command = "!ip"
string = "!ip 127.0.0.1"
if command in string:
That's where I get stuck. After the first if statement I need another one to recognize any IP address just not 127.0.0.1. What's the easiest way of doing this?