Today's I ask simple question ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Today's I ask simple question ?

I see we can print string with like as "Unknown","""Unknown""" But I didn't think it will also work "Unknown"""

17th Dec 2020, 11:50 AM
SĆ¢Ć±tĆ“sh
SĆ¢Ć±tĆ“sh - avatar
9 Respostas
+ 4
Try it in code playground.
17th Dec 2020, 12:16 PM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 3
SƄƱtƶsh It doesn't give any error ..
17th Dec 2020, 11:53 AM
Krish
Krish - avatar
+ 3
https://code.sololearn.com/c7ETU7EZcg6C/?ref=app This is the actual link the link of code in the question doesn't work
17th Dec 2020, 1:34 PM
Krish
Krish - avatar
+ 2
Because you can concatenate string without +. Note that this can also be used in C, C++, Ruby, and some other languages. While you can't in Java, C# and some others. https://stackoverflow.com/questions/18842779/string-concatenation-without-operator
17th Dec 2020, 2:01 PM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 2
Yes not possible ofcourse ā€¦ Really amazing question hahaha
19th Dec 2020, 6:10 AM
LONEWOLF
LONEWOLF - avatar
+ 1
Yes it will also work but mostly we use """ for when we have to use double quotes in it like example :- print(""" ""This is quote"" """)
18th Dec 2020, 7:11 PM
Sayyam Jain
Sayyam Jain - avatar
+ 1
You are new Pelumi Bello , I wanna tell you that, Q&A is not for Conversation.
19th Dec 2020, 7:13 AM
LONEWOLF
LONEWOLF - avatar
+ 1
Pelumi Bello use dm Or feed post for that
19th Dec 2020, 7:20 AM
Krish
Krish - avatar
0
Ok
19th Dec 2020, 7:21 AM
Pelumi Bello
Pelumi Bello - avatar