Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Timeline for answer to How can I fill out a Python string with spaces? by WAF

Current License: CC BY-SA 4.0

Post Revisions

5 events
when toggle format what by license comment
Mar 24, 2019 at 9:52 comment added WAF @changye I believe this is also the default behavior of f'{strng:10}'.
Mar 24, 2019 at 7:57 comment added Chang Ye f'{strng: >10}' for filling string with leading whitespace to a length of 10. That is magic. And it is not well documented.
Jul 24, 2018 at 6:12 history edited WAF CC BY-SA 4.0
Edited in suggestion from comment.
Jun 27, 2018 at 13:55 history edited WAF CC BY-SA 4.0
Modernized and confidentized
Jul 6, 2016 at 16:05 history answered WAF CC BY-SA 3.0