0

How to transform integer to string.

str(5) gives me "No output". How do I convert a 5 into a "5"/ '5' with a function?

28th Aug 2017, 5:32 PM
Kerstin
3 Answers
+ 2
str(5) should work. Note that if you want to output it, you need to write print(str(5)).
28th Aug 2017, 5:34 PM
Adam BlaĆŸek
Adam BlaĆŸek - avatar
+ 2
As Adam has said, print(str(5)) should work fine.
28th Aug 2017, 5:54 PM
Jay Burna
Jay Burna - avatar
+ 1
Thanks!
28th Aug 2017, 9:30 PM
Kerstin