+ 2
Guys,strings are only in variables ? Or in print also
4 RĂ©ponses
+ 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
+ 2
The print() function returns a string. So does input().
+ 1
They aren't only in variables
0
string is a variable