+ 9
How can i convert a number into a string?
9 Answers
+ 10
So can I use the inbuilt function str()
+ 7
And remember everything generated by input() already IS a string, so you NEVER need str(input()).
+ 5
Thank you so much
+ 2
This is how you do it-
num = int(input())
val = str(num)
You can check the type like this-
print(type(val))
+ 1
//Bunch of related Codes on codes section, you can see for reference .
https://code.sololearn.com/cL5FgXTnx0R9/?ref=app
0
Yes
0
use str() function to convert given input to string
0
Use str() function
0
add str