+ 1

What's different between " and ' ?

for example: "2" and '2' >>> print('please!') >>>print("please!")

24th Dec 2016, 3:39 AM
Tuyet Ly Thi
Tuyet Ly Thi - avatar
15 ответов
+ 3
Usually there's no different but if you want to make a statement like( I'm) you put it in double like ("I'm") if you put it in single is error
7th Jan 2017, 1:49 AM
Wesam Fathy Mahmoud
Wesam Fathy Mahmoud - avatar
+ 2
Thank all of u.=)).I'll think clear about thí problem
24th Dec 2016, 4:47 AM
Tuyet Ly Thi
Tuyet Ly Thi - avatar
+ 1
sorry guys I wrote it by mistake here...I want to write somewhere....else
7th Jan 2017, 2:56 AM
MEDHIR
MEDHIR - avatar
0
There is no difference.
24th Dec 2016, 4:02 AM
clex19
clex19 - avatar
0
it is not the same as php. ' and "" is no differencr i see
28th Dec 2016, 6:33 AM
LunacyZeus
LunacyZeus - avatar
0
There is no difference in " and ' in python they will print same statement
29th Dec 2016, 7:33 AM
Vipin Patel
Vipin Patel - avatar
0
there is. a slight difference
8th Jan 2017, 9:20 AM
Siddesh Waran
Siddesh Waran - avatar
0
not much difference between " &'... we can use both. only for print option.. hope this will be helpful
12th Jan 2017, 1:57 PM
seetha
seetha - avatar
0
you can use both single and double quotes for printing a string. but if you want to print the double or single quotes as a character use escape sequence.
18th Jan 2017, 4:20 AM
vaishali
vaishali - avatar
- 1
I recall that some languages use ' for single chars and " for strings. In any case it's very useful to have both at your disposal in python, if you would like to print the actual " or ' characters you can alternate them like this: print ("This a a single quote '") print ('This is a double quote "')
27th Dec 2016, 7:02 AM
Joel Arriaza
- 1
in python 2.x whe u print "w" it comes out as 'w' . so we use double quotes wen u want python to return in single quotes. but 3.x it seems the \ does that work
27th Dec 2016, 7:33 AM
eben
- 3
there is no difference..pls follow me TUYET
24th Dec 2016, 4:47 AM
MEDHIR
MEDHIR - avatar
- 4
n difference
24th Dec 2016, 4:47 AM
MEDHIR
MEDHIR - avatar
- 5
follow me guys
24th Dec 2016, 4:48 AM
MEDHIR
MEDHIR - avatar
- 6
THERE IS NO DIFFERENCE , BUDDY PLS FOLLOW ME TUYET LY THI
24th Dec 2016, 4:39 AM
MEDHIR
MEDHIR - avatar