Education and Didactics

   

Python Formatted Output: Old and New

Authors: K. S. Ooi

The new string formatter of Python 3 has more to offer than the old formatted output absorbed from C. The adjustment can be specified by either :> (move to right), :< (move to left), or :^ (move to center), which is quite intuitive. One can select character to pad spaces and no longer to have only whitespaces as padding characters. With or without precision specification, the new formatter is predictable and intuitive.

Comments: 5 Pages.

Download: PDF

Submission history

[v1] 2020-12-28 11:07:12

Unique-IP document downloads: 202 times

Vixra.org is a pre-print repository rather than a journal. Articles hosted may not yet have been verified by peer-review and should be treated as preliminary. In particular, anything that appears to include financial or legal advice or proposed medical treatments should be treated with due caution. Vixra.org will not be responsible for any consequences of actions that result from any form of use of any documents on this website.

Add your own feedback and questions here:
You are equally welcome to be positive or negative about any paper but please be polite. If you are being critical you must mention at least one specific error, otherwise your comment will be deleted as unhelpful.

comments powered by Disqus