What happens when we write str in front of a variable (“y”) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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