I have two lists
list1 = ['ipv6']
list2 = ['autodiscover', 'cdn0', 'dev', 'email', 'link', 'mail', 'shop', 'www']
Using the following print command and formatting I am trying to print the two lists in separate columns separated by the '|' character.
print("{:<25} {:<1} {:<15}".format('\n'.join(list1), '|', '\n'.join(list2)))
The first item in each list properly aligned however all subsequent items from list2 are aligned to the left of the terminal.
Tags Subdomains
----------------------------------------------------------------------------------------------------
ipv6 | autodiscover
cdn0
dev
email
link
mail
shop
www
Using the standard Python3 modules (no 3rd party modules) how would I align the other items in the list?