On Wed, Mar 28, 2018 at 7:30 AM, Ganesh Pal <ganesh1...@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. -- https://mail.python.org/mailman/listinfo/python-list