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

I really really suck at math.
Type an equation for the following pattern! Please Help!!!
raph of the Which numbers are solutions to the inequality 2x – 1 > X + 2? Check all of the boxes that apply. 0 1 2 3 4 5 DONE
Match the word or expression with its correct image and explanation. Image 01 Two men dressed for business, shaking hands Image 01 A young teen talking on his p
Model tenements, built to create better lives for the poor, were: O A. Older condominiums in the suburbs. B. Single family homes in the slums. C. Run-down build
hello please help 10 points will choose brainliest if correct!
Walking around at intervals can help counter the negative impact of long periods spent in one position. True False —-Cosmo
What part of 15 is 3?
Which statement describes an ADVANTAGE of presenting information about proven in the Passage rather than in the audio People will find the information in the Pa
8(m-6)=8m-48 whats the answerrrrrrrrrrrrrrrrrrrrrrrrrr