string - What does %c character formatting do in Python and it's use? -


going through string formatting operations can't wrap head %c operation , use.

learn python hard way, gave following example makes little sense without proper context.

"%c" % 34 == '"'      

here link if wants check out: http://learnpythonthehardway.org/book/ex37.html

it gives character represented ascii code "34".

if ascii table notice 34 = "


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -