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

Can someone help factor the expression  y2 + 10xy + 25x2
what does slippered pantaloons means in the seven ages of man for william shakespeare
simplify: -3(4×-4) 7x(3+4)
Which of the following is a sign of inflammation? a. bruising b. swelling c. numbness d. temperature decrease
It costs a dollars for an adult ticket to a reggae concert and s dollars for a student ticket. The difference between the cost of 12 adult tickets and 18 studen
Measuring the size of a spefic object might include which of these SI units?A.meter ,soundB.candela,moleC.kilogram,ampereD.meter,killogram
how do you simplify 681
Determine whether the system of linear equations has one and only one solution, infinitely many solutions, or no solution. Find all solutions whenever they exi
Find k such that x² + (k + 1)x + k + 4 = 0
Find k such that x² + (k + 1)x + k + 4 = 0