+ 2

Guys,strings are only in variables ? Or in print also

11th Apr 2021, 9:10 AM
Katdotbrush
Katdotbrush - avatar
4 Respostas
+ 5
String in variable: var = 'hello world' print(var) String in print: print('hello world') If you are asking can print function print a string, then answer is Yes If NOT then clarify your bit more
11th Apr 2021, 9:19 AM
Scarlet Witch
Scarlet Witch - avatar
+ 2
The print() function returns a string. So does input().
11th Apr 2021, 11:35 AM
David Ashton
David Ashton - avatar
+ 1
They aren't only in variables
11th Apr 2021, 9:18 AM
Slick
Slick - avatar
0
string is a variable
8th May 2021, 11:22 AM
K Yugandhar K Yugandhargowd
K Yugandhar K Yugandhargowd - avatar