theIP = re.findall('\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}.\\d{1,3}', request)
if any(ip == '211.125.122.192' for ip in theIP):
    print('You are OK')
else:
    print('BAAD')
if '211.125.122.192' in theIp:
    print('You are OK')
else:
    print('BAAD')
Python newbie, equal to a string?