+ 2

What is the use of str(variable)

if you do ans, Thanx!!!

2nd Jan 2017, 5:47 AM
priyanshu
priyanshu - avatar
2 Answers
+ 2
no it doesn't: it CREATES a value that is the representation (of the type str) of the variable
2nd Jan 2017, 9:09 PM
Amaras A
Amaras A - avatar
+ 1
Change variable's type to str.(if it could)
2nd Jan 2017, 7:25 AM
AugustusHsu
AugustusHsu - avatar