I'm trying to get the result of every iterations of a for loop into a list, but when I run my code, I only get the last iteration's result in my list.
import ipaddress
user_input = input("")
network = ipaddress.IPv4Network(user_input)
for i in network.hosts():
ipaddresses = i
print(ipaddresses)
The result is -
10.192.32.0/24
10.192.32.254