fahadalisaleh4118 fahadalisaleh4118
  • 23-08-2019
  • Computers and Technology
contestada

What is the difference between ‘’ and “” string type in python?

Respuesta :

Mustela Mustela
  • 26-08-2019

Answer:

There is no difference between ‘’ and “” string type in python. Both are used to hold the string or sequence of character in the python. triple """ """ can also use for the same.

Example:

str1 = "aeiou"

str2 = 'aeiou'

str3 =""" hello"""

print(type(str1), type(str2),type(str3))

<class 'str'> <class 'str'> <class 'str'>

Here all are used to hold string or sequence of character.

Answer Link

Otras preguntas

the larger root of the equation (x+4)(x+3)=0 is and why???
What figurative language is found in othello act 2 scene 1
write 1700 g to nearest kg
what percent of 9.2 m is 2.5m?
Justin has $7.50 more than Eva and Emma has $12 less than Justin. Together, they have a total of 63.00$. How much money does each person?
Suppose that a local trout population exhibits exponential growth by doubling every 4 years. Considering that the initial population were 250 trout, answer the
Express 15 as a percentage of 60. Please help And also Express 10 as a percentage of 59
5 reasons that cells divide?
how do i simplify 2a x 3b x 4c
a row of sprinkler's is to be installed parallel to and 4.5 feet away from the edge of flower bed. each sprinkler waters a region with a 6 foot radius. how far