0

What is the use of str in python

31st Mar 2020, 1:24 PM
anime and fortnite
anime and fortnite - avatar
4 Antworten
+ 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
31st Mar 2020, 1:29 PM
Simone Crema 🇮🇹
Simone Crema 🇮🇹 - avatar
0
Thanks
31st Mar 2020, 1:27 PM
anime and fortnite
anime and fortnite - avatar
0
Thanks
31st Mar 2020, 1:30 PM
anime and fortnite
anime and fortnite - avatar
0
str is a function in python It convert any interger/float to string
31st Mar 2020, 1:47 PM
Rishi
Rishi - avatar