Use a for loop to iterate through each network in the networks set.

Make sure to type for network in networks.