Can u give brief idea about strings double quotes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can u give brief idea about strings double quotes?

" " (what can I write in this am not getting)

20th Nov 2016, 9:23 AM
Sree Latha
Sree Latha - avatar
3 Answers
+ 2
" is the same as '. But inside "" you can use ' without \ and vice versa. For example: "I'm Timur. I'm happy." == 'I\'m Timur. I\'m happy.'
20th Nov 2016, 9:49 AM
donkeyhot
donkeyhot - avatar
0
I would prefer ", for in future parts you would use ' in a string. Any suggestions?
27th Nov 2016, 3:10 AM
wang Shuguo
- 1
also, if you write without "" or '', it means that you wanna print a value of a variable for example : >>> a = 3 >>> print(a) 3
20th Nov 2016, 2:40 PM
Wira SW
Wira SW - avatar