String and print | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

String and print

Hey what’s a string and when do u use it? Ask what’s the diff w string and print ya’ll? Please tell me!!!!

3rd Sep 2018, 6:20 PM
Hanna Gatta
Hanna Gatta - avatar
3 Answers
+ 3
A string is a variable type which denotes a "string of characters". A print statement is usually a function which outputs the value of whatever parameter is provided.
3rd Sep 2018, 6:29 PM
Hatsy Rei
Hatsy Rei - avatar
0
hey can u please also solve this question: “Complete this code to create a string containing a double quote” its in the strings chapter
3rd Sep 2018, 6:36 PM
Hanna Gatta
Hanna Gatta - avatar
0
Ace has used the escape character (back slash) which allows you to include special characters (e.g. double quotes) and formatting (e.g. a new line - \n) in a string (which is a data type used for variables that can be assigned alphanumeric and special character sequences)
3rd Sep 2018, 11:48 PM
benjamin