Convert integer to string in Python

preview_player
Показать описание
#github #github #github #github How do I convert an integer to a string?
42 ⟶ "42"

For the reverse, see How do I parse a string to a float or int?. Floats can be handled similarly, but handling the decimal points can be tricky because floating-point values are not precise. See Converting a float to a string without rounding it for more specific advice.
Рекомендации по теме