You have two lists:hosts = [‘10.0.0.1’, ‘10.0.0.2’] ports =…
You have two lists:hosts = [‘10.0.0.1’, ‘10.0.0.2’] ports = [22, 80]Write nested for loops that, for each host, print the host and then each port on its own line. The output should be:10.0.0.1 22 80 10.0.0.2 22 80
Read Details