Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
python [2019/07/09 17:23] paul [Strings] |
python [2019/07/09 17:29] (current) paul [Formatting] |
||
---|---|---|---|
Line 170: | Line 170: | ||
* '' | * '' | ||
- | ====== Formatting ====== | + | ==== Formatting ==== |
+ | |||
+ | If you want to print a neat line of data use the [[https:// | ||
+ | |||
+ | For example: | ||
+ | <code python> | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | This sets a fix width for each field and aligns the test either left '' | ||
- | If you want to print a neat line of data use the [Format String Syntax|https:// | ||
===== Mutability ===== | ===== Mutability ===== | ||