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 Felix Kling

Current License: CC BY-SA 3.0

Post Revisions

8 events
when toggle format what by license comment
Sep 19, 2023 at 2:32 comment added frank let me count: 'hi12345678'
Jun 30, 2015 at 21:07 comment added Rohan Grover ljust(), rjust() have been deprecated from the string module only. They are available on the str builtin type.
Jan 22, 2015 at 13:37 comment added radtek Its gone in python 3? Just wanted to add there is also rjust and center which work much the same way but for different alignments
Jan 21, 2015 at 8:41 comment added Mawg ljust() is now deprecated. See stackoverflow.com/questions/14776788/… for the correct way to do it
Jul 27, 2013 at 7:25 comment added CoatedMoose or @abbot 's if you are stuck supporting old versions of python
Jul 27, 2013 at 7:08 comment added CoatedMoose @simon 's answer is more flexible and more useful when formatting more complex strings
May 2, 2013 at 10:52 vote accept taper
Apr 15, 2011 at 12:24 history answered Felix Kling CC BY-SA 3.0