What happens when we write str in front of a variable (“y”) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов
+ 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