Python Arena

Module 17

Print statement formatting

Making output look the way you want. The sep and end arguments of print, a fixed number of decimals in f-strings, and widths and alignment for tidy columns.

Steps

  1. Joining values in print: sep and end
  2. Decimals in f-strings
  3. Widths and alignment