Printing a percent sign

Georg Brandl g.brandl-nospam at gmx.net
Mon Sep 25 16:47:11 EDT 2006


stephen at theboulets.net wrote:
> Hi all. How do I escape the "%" sign in a print statement so that it
> prints? Thanks.

 >>> print "%"
%

Did you mean in a string being interpolated with the % operator?

Georg



More information about the Python-list mailing list