String Formatting with new .format()
Dan Stromberg
drsalists at gmail.com
Wed Mar 28 10:54:10 EDT 2018
On Wed, Mar 28, 2018 at 7:30 AM, Ganesh Pal <ganesh1pal at gmail.com> wrote:
>>
>> Or maybe they're not giving the same result. I'm a little confused here.
>>
>
>
> My Bad and Apologies , I should be fined for pasting wrong question.
>
> Actually I wanted to know if its ok to use just empty {} with .format()
> or use {} with values i.e {0} {1} both will give the same results anyway
2.6 and 3.0 do not like {}, but do like {0}.
2.7 and 3.1+ are fine with either.
More information about the Python-list
mailing list