wilfredinni/python-cheatsheet

Typo in Python String Formatting

jkornijchuk opened this issue · 1 comments

I guess there is a typo in the article. You used %x instead of %d
the %d format specifier is used to convert an int value to a string, while %x helps to format the hexadecimal representation of the integer.

image

Hey, thank you for that.