0

What does 'str' function mean?

16th May 2018, 4:25 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar
9 odpowiedzi
+ 7
string
26th May 2018, 3:32 PM
Prabhat
Prabhat - avatar
+ 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
16th May 2018, 4:47 PM
Paul
Paul - avatar
0
str is a string function used for string operations
16th May 2018, 4:28 PM
Rajeeb
0
can you give an example?
16th May 2018, 4:30 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar
0
in c++ or other
16th May 2018, 4:31 PM
Rajeeb
0
16th May 2018, 4:31 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar
0
thanks and I'll keep that in mind 😊
16th May 2018, 4:35 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar
0
wow! so 'str' function convert anything to string?
16th May 2018, 4:51 PM
Tanzim Ikram Sheikh
Tanzim Ikram Sheikh - avatar