[Tutor] A file containing a string of 1 billion random digits.

Richard D. Moores rdmoores at gmail.com
Mon Jul 19 19:07:47 CEST 2010


On Mon, Jul 19, 2010 at 09:58, ALAN GAULD <alan.gauld at btinternet.com> wrote:
> Heres what I did:
> Search Google for "Python format strings" and from the first link click
> on String Formatting operations in the contents pane:
>
> http://docs.python.org/library/stdtypes.html#string-formatting-operations
>
> Read item number 4.

"4. Minimum field width (optional). If specified as an '*' (asterisk),
the actual width is read from the next element of the tuple in values,
and the object to convert comes after the minimum field width and
optional precision."

Now that just screams for about a dozen well-designed illustrative
examples, don't you think?

Thanks, Alan.


More information about the Tutor mailing list