+ 1
What's different between " and ' ?
for example: "2" and '2' >>> print('please!') >>>print("please!")
15 Antworten
+ 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
+ 2
Thank all of u.=)).I'll think clear about thí problem
+ 1
sorry guys I wrote it by mistake here...I want to write somewhere....else
0
There is no difference.
0
it is not the same as php. ' and "" is no differencr i see
0
There is no difference in " and ' in python they will print same statement
0
there is. a slight difference
0
not much difference between " &'... we can use both. only for print option.. hope this will be helpful
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.
- 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 "')
- 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
- 3
there is no difference..pls follow me TUYET
- 4
n difference
- 5
follow me guys
- 6
THERE IS NO DIFFERENCE , BUDDY
PLS FOLLOW ME TUYET LY THI