0
what is str?
3 Réponses
+ 6
str is a keyword in python for data type string
for example :
a=str(5)
print(a)
now the str() function converts the type of 5 as string
'5'
like wise u can use
str() for string conversion
float() for float conversion
int() for integer conversion
the arguments passed within these functions would convert the type respectively
0
oh thanks a lot, now I get it.
0
Which is used convert to string data type