1.1. Strings#

1.1.1. Printing lists as columns#

f-strings are very powerful in Python. The magic happens when you use the right type of format spec inside the placeholder brackets.

For example, you can use “<, >” operators combined with an integer to make the strings left or right aligned with trailing whitespace. In others words, you would be printing in columns👇: