0

Need help

print("First string" + ", " + "second string") In the above why do we add double apostrophes after comma? + ", " +

31st May 2020, 7:19 AM
Sylvin Dias
7 Answers
+ 1
Sylvin Dias Anything you will write inside apostrophe will display in output.
31st May 2020, 7:39 AM
A͢J
A͢J - avatar
+ 2
Because you want to add comma also between two string. Your output will be : First string, second string
31st May 2020, 7:21 AM
A͢J
A͢J - avatar
+ 2
Sylvin Dias Yes it's for comma like you do with string.
31st May 2020, 7:27 AM
A͢J
A͢J - avatar
+ 2
Sylvin Dias Check another example print("2" + " + " + "2" + " = " + "4") Here output will look like this 2 + 2 = 4
31st May 2020, 7:30 AM
A͢J
A͢J - avatar
0
i get that! but what does the double appostrophe do? is it for the comma?
31st May 2020, 7:25 AM
Sylvin Dias
0
great got it! thank you👍
31st May 2020, 7:27 AM
Sylvin Dias
0
ahh okay! so I need to add “+” so I can see the plus in the output and the plus without the apostrophe is a function.
31st May 2020, 7:35 AM
Sylvin Dias