What is the difference between string and print? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the difference between string and print?

21st Jul 2016, 8:52 PM
Maddy Turner
Maddy Turner - avatar
7 Answers
+ 5
String is a data type whearas the print is used to output data on stdout usually screen
21st Jul 2016, 10:30 PM
Vishal
+ 3
String is a text oriented/involves alphabet code lines.but print gives the output of codes
22nd Jul 2016, 5:57 AM
Anane Ebenezer
Anane Ebenezer - avatar
+ 2
string is a data type, as floats, and always use "", for example "string". Print is a function and it allows to show the output of your input.
26th Jul 2016, 2:37 AM
Jean Pierre
Jean Pierre - avatar
0
thank you. that makes sense!
21st Jul 2016, 10:42 PM
Maddy Turner
Maddy Turner - avatar
0
String is a data type to store text formatted values Where as print is a function to print the values provides as arguments
26th Jul 2016, 6:59 AM
Sohan Singh Rajpurohit
0
string is a data type whereas the print is a statement in idle to print anything... string data type contains characters. strings also contains all other things as numbers , special characters. in double or single quotes ..
30th Jul 2016, 5:58 PM
Aakash Sharma
Aakash Sharma - avatar
0
String is a data type and print is a function that writes something on your screen?
4th Aug 2016, 12:17 AM
Narek Tonoyan
Narek Tonoyan - avatar