String Formatting

  • + 1 comment

    I can't understand the second statement...

    width = len("{0:b}".format(n))

    what is "{O:b} ? What does it mean?