import re
def find_ips(inp):
'''
Returns a list of ip addresses of the form 'x.x.x.x' that are in the input
string and are separated by at least some whitespace.
>>> find_ips('this has one ip address 127.0.0.1')
['127.0.0.1']
>>> find_ips('this has zero ip addresses 1.2.3.4.5')
[]
'''
pattern = r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"
iplist = [match[0] for match in re.findall(pattern, inp)]
return iplist
ips = []
ips = find_ips('basjlcbndilsfn 1.2.3.4.5')
print ips
aW1wb3J0IHJlCgpkZWYgZmluZF9pcHMoaW5wKToKICAgICcnJwogICAgUmV0dXJucyBhIGxpc3Qgb2YgaXAgYWRkcmVzc2VzIG9mIHRoZSBmb3JtICd4LngueC54JyB0aGF0IGFyZSBpbiB0aGUgaW5wdXQKICAgIHN0cmluZyBhbmQgYXJlIHNlcGFyYXRlZCBieSBhdCBsZWFzdCBzb21lIHdoaXRlc3BhY2UuCiAgICA+Pj4gZmluZF9pcHMoJ3RoaXMgaGFzIG9uZSBpcCBhZGRyZXNzIDEyNy4wLjAuMScpCiAgICBbJzEyNy4wLjAuMSddCiAgICA+Pj4gZmluZF9pcHMoJ3RoaXMgaGFzIHplcm8gaXAgYWRkcmVzc2VzIDEuMi4zLjQuNScpCiAgICBbXQogICAgJycnCiAgICBwYXR0ZXJuID0gciJeKChbMC05XXxbMS05XVswLTldfDFbMC05XXsyfXwyWzAtNF1bMC05XXwyNVswLTVdKVwuKXszfShbMC05XXxbMS05XVswLTldfDFbMC05XXsyfXwyWzAtNF1bMC05XXwyNVswLTVdKSQiIAogICAgaXBsaXN0ID0gW21hdGNoWzBdIGZvciBtYXRjaCBpbiByZS5maW5kYWxsKHBhdHRlcm4sIGlucCldCiAgICByZXR1cm4gaXBsaXN0CiAgICAKaXBzID0gW10KaXBzID0gZmluZF9pcHMoJ2Jhc2psY2JuZGlsc2ZuIDEuMi4zLjQuNScpCnByaW50IGlwcyAKICAgIA==