3
What is the difference between the string and Character?
For example:
print 'Olá, mundo!'
print "Olá, mundo!"
Since the two in theory are the same thing, right?
PS.: I opened XML to do my color editing, and in Python XML comes a color for string and a color for Character.
When I use the double quotes gets a color and single quotes changes. But only that it rotates normally.
There are two strings.
– Maniero
I know there are two strings. Only in the python xml documentation, the command for
string
comes from a color, in case" "
and Character comes with another color in case' '
.– Sandson Costa
From https://www.tutorialspoint.com/python/python_strings.htm Python does not support a Character type. So apparently Python doesn’t have a Character type, only string.
– user83428
And the recommended in Python are simple quotes.
– user83428
Um,,, got it! Thanks, and liked the site too.
– Sandson Costa
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.
– Maniero
Honestly, I don’t understand what he meant by "comes a color for string and a color for Character".
– Woss