[Tutor] creating a regularly placed fields in a line
Prasad, Ramit
ramit.prasad at jpmorgan.com
Wed Apr 25 19:15:20 CEST 2012
> >
> > Not really sure how to do the equivalent with % substitution.
> >
>
> See
> http://docs.python.org/library/stdtypes.html#string-formatting-operations
>
> Mark Lawrence.
Thanks Mark. Based on that, I find .format more intuitive
(especially for alignment) than % substitution. Useful to
know both though, since lots of people swear by % substitution.
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
--
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.
More information about the Tutor
mailing list