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?
3 Answers
+ 2
str(5) should work. Note that if you want to output it, you need to write print(str(5)).
+ 2
As Adam has said, print(str(5)) should work fine.
+ 1
Thanks!