+ 6
I'm new here, can someone explain me the difference of (“ ”) and (' ') in terms of putting word
24 Antworten
+ 11
Python does not have that restriction of single quotes for chars and double quotes for strings.
As you can see here the grammar explicitly allows both for strings.
+ 11
lorensaron mercado
In python and JavaScript we don't need to define data type so single quotes (' ') or double quotes (" ") doesn't matter
But in some languages (like Java) it is necessary to define data type so single quotes (' ') is used for char data type and double quotes (" ") is used for string
+ 3
There is no difference
+ 2
In python there is no such differences between the two whereas in java ' ' is for char. And " " is for string.
+ 2
They both do exactly the same thing.
+ 2
Use double quote (“ “ )when the word to put in the quotation mark has single quote already …and use single (‘ ‘)quote when the word to put in the quotation mark has double quote already.
Print ( “ ‘Hello World’ “)
Print ( ‘ “Hello World” ‘)
+ 2
There is no difference between the both in python
+ 2
You can use ' ' on string that contains " " and use " " on string that contains ' ' inside.
for example if you want to print this html line
<div style="height : 30px ">........<div>
In this case we will use ' ' to not interrupted with the "" inside the string value
+ 2
They are the same, two quotes and one quote is only fuctioned by print. They also make a speach on the output!
+ 1
There is no difference at runtime. Just a difference in style.
+ 1
C++ Answer : " for string, ' for char
+ 1
Hye everyone! I am new here in kotlin course. So anyone from here can help me?
+ 1
They’re the same in print function
+ 1
They actually do the same thing , unlike other languages that use the single quotes for char and double quotes for string.
+ 1
They are both used for the same purpose
+ 1
In Python double quote and single quote are used for same purpose of printing strings in output.
But sometimes we want to print something in quotes , in that situation both quotes are used.
For example: if we want to print - he is 'king'.
We required following code:
Print (" he is 'king'.")
Hope this will help you to understand
+ 1
Lee6680
Where's your thought process? :)
+ 1
They're honestly the same thing, use what you like
0
https://code.sololearn.com/cbHSL39B81Q7/?ref=app
When you make like this, "is using