0
What is the use of str in python
4 Réponses
+ 1
The str() function is used to convert a value (integer for example) into a string.
Its useful when you want to concatenate a string with an integer.
"I'm" + 20 + "years old" //Error
"I'm" + str(20) + "years old" //Good
0
Thanks
0
Thanks
0
str is a function in python
It convert any interger/float to string