Code Meaning %s String (or any object) %r s, but uses repr, not str %c Character %d Decimal (integer) %i Integer %u Unsigned (integer) %o Octal integer %x Hex integer %X x, but prints uppercase %e Floating-point exponent %E e, but prints uppercase %f Floating-point decimal %g Floating-point e or f %G Floating-point E or f %% Literal %
Related Scripts with Example Source Code in same category :