Can anyone of you python fags explain to me the difference between %d %r and %s
>>57863043
>the difference between %d %r and %s
They each have a different letter after the percent sign.
>>57863043
https://pyformat.info/
>>57863043
>not reading the python docs
programming isn't for you
>>57863043
This is explained in the Python documentation. In short,
%d will format a number for display.
%s will insert the presentation string representation of the object (i.e. str(o))
%r will insert the canonical string representation of the object (i.e. repr(o))
If you are formatting an integer, then these are equivalent. For most objects this is not the
case.
re: http://stackoverflow.com/questions/15170349/whats-the-difference-between-r-s-and-d-in-python
you are welcome
>>57863185
you sir, were helpful