printing each item of a variable on a separate line in python,print('\n'.join(str(port) for port in ports))