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

estimate a 15% tip for a 26.80 meal
what is the current state of relations between the communists and nationalists in china
What impact did improvements in transportation have on Tang and Song China?
Sound waves strike a glass and cause it to shatter. This phenomenon illustrates (1) resonance (3) reflection (2) refraction (4) diffraction
Marco's Drama class is performing a play. He wants to buy as many tickets as he can afford. If tickets cost $2.50 each and he has $14.75 to spend, how many tick
Which description matches the poetic form iambic pentameter? a. ten syllables divided into pairs of unstressed and stressed syllables b. couplets of trochaic fe
Biotic potential and _____ determine _____. A.environmental resistance; rate of increase B.distribution; carrying capacity C.environmental resistance; carrying
Which type of white blood cells consumes microorganisms
What were some of the practical reasons Muslims had for supporting the advancement of science?
what is 14g-98+3g when g is 7