<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_ip_to_net(networks, host):
 """ Add hosts from ipplan to networks object. """

    for network in networks:
        if host['ipaddr'] in network['network']:
            network['hosts'].append(host)
            return