What happens when we write str in front of a variable (ā€œyā€) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What happens when we write str in front of a variable (ā€œyā€)

26th May 2019, 12:22 PM
Krish Vaidya
Krish Vaidya - avatar
2 Respostas
+ 2
The str() function is used to convert other types of variables to strings. When you put a string in there it'll probably just stay the samw
26th May 2019, 12:42 PM
Trigger
Trigger - avatar
+ 1
Can you please give an example?
26th May 2019, 12:41 PM
Trigger
Trigger - avatar