0
What does 'str' function mean?
9 odpowiedzi
+ 7
string
+ 1
An example:
j = 1 # j is an integer
print(j + j) # output 2, j is a number
j = str(j) # make j a string
print(j + j) # output 11, j is string
0
str is a string function used
for string operations
0
can you give an example?
0
in c++ or other
0
in Python
0
thanks and I'll keep that in mind 😊
0
wow! so 'str' function convert anything to string?