Why is that double apostrophe used immediately after +sign in print("first string"+","+"second string") | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is that double apostrophe used immediately after +sign in print("first string"+","+"second string")

17th Jul 2019, 1:57 PM
Alok Biradar
Alok Biradar - avatar
1 Answer
+ 6
print("First String" (+) "," (+) "Second String") Hii bro๐Ÿค—๐Ÿ™‹ Now let us see The first set of "" double quotes are for the first string similarly last sets "" are for the second string Now it gets to the middle one. Look , you have used + sign to concatenate So actually u are doing is that you are adding the first string with comma and then with second string That results in it : "First string" + "," + "second string" And for adding we also need to convert (,) into a string zo to convert it , we place double quotes around it.๐Ÿ˜‰ Thanks๐Ÿ‘๐Ÿ‘
17th Jul 2019, 2:15 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar