Why do we use "or ' when give the same output ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do we use "or ' when give the same output ???

when I type >>>"hello world" it gives us the output as 'hello world' n when I use >>>'hello world' it also gives the same result as 'hello world' then why do we use these" or'???

14th Feb 2017, 3:17 PM
hackey
hackey - avatar
5 Answers
+ 3
if you want to output ' then you should do it like that : "'" otherwise it would be an error (of course that also works: '"')
14th Feb 2017, 3:19 PM
Kamil
Kamil - avatar
+ 3
what would you do if you want the output to be a single quote ' ? you need to use " as the quotes and ' as the content. so "'" would be ' as the output
14th Feb 2017, 4:37 PM
Kamil
Kamil - avatar
+ 1
can't get u bro pls can I explain me better??
14th Feb 2017, 4:34 PM
hackey
hackey - avatar
+ 1
sorry typing mistake can u???
14th Feb 2017, 4:35 PM
hackey
hackey - avatar
+ 1
ok I got it thanks bro
14th Feb 2017, 4:38 PM
hackey
hackey - avatar