0

What is the basic difference between print and string

26th Jun 2018, 11:08 AM
nitin
2 Answers
+ 2
Print is a function and string is a data structure.
26th Jun 2018, 4:22 PM
Maninder $ingh
Maninder $ingh - avatar
0
print is a special kind of function, function is an object, that returns a value depending on it's arguments. Functions are written function name followed by a parenthesis pair, comma separated values in the parentheses of a function are the function arguments. print function returns the value as output, which can be read when the program is run. String is a type of object, that stores text in a double quote pair or a single quote pair.
26th Jun 2018, 11:21 AM
Seb TheS
Seb TheS - avatar