0
What is the basic difference between print and string
2 Answers
+ 2
Print is a function and string is a data structure.
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.