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

which of the following can cause the administrator to deny an application for registration? a the applicant was convicted of a driving under the influence misde
the following data are available for the south division of manhattan products, inc. and the single product it makes: unit selling price $ 24 variable cost per u
Which viewpoint did anti-federalists support during the debates over the ratification of the constitution?.
Explain how the simultaneous coevolution of earth's systems and life on earth happens and provide evidence with your explanation.
Please help me respond this question
Kay solves the following system of equations using the substitution method. y=-4x+2 3x-y=9 What is the single variable equation she solves after substituting
Macbeth most likely questions banquo about his journey in scene 1 because macbeth
What is the name of Santa's daughter?
Use long division and be descriptive.
What is the record for the fastest time to decorate a Christmas tree?