Very stupid question about a % symbol
J
dreadpiratejeff at gmail.com
Thu Sep 16 12:23:08 EDT 2010
On Thu, Sep 16, 2010 at 12:09, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2010-09-16, J <dreadpiratejeff at gmail.com> wrote:
>
>> Reported memory amounts are within 10% tolerance
>
>>>> "Reported memory amounts are within %d%% tolerance" % 10
> 'Reported memory amounts are within 10% tolerance'
Thanks for the replies... I KNEW there was a simple way to escape the
% but I had no idea what it was (I just had conviction).
I was thrown when the \ didn't escape it... never knew about %%. But
now I do! Thanks for the replies!
More information about the Python-list
mailing list