Printing each item of a variable on a separate line in Python,"print('\n'.join(map(str, ports)))"