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

What do a mouse, a dandelion, and a shark all have in common? A. They have the same environmental requirements. B. They get their energy from other organisms
Select the word that is correctly spelled. stuning stunning
A population of mice has black or brown hair. The gene for black hair color (B) is dominant over brown (b). If 16% of the mice are homozygous black and 24% are
85% of 920 and I would like to know how to do it.
what element has 81 protons in the nuclei of its atoms
4. people from which European nation first shipped enslaved Africans to the New World? Portugal Netherlands England France 5. Which
what is the proability that both pudding cups in a package are defective
Which is an accurate statement about Ramses II? A. He built a new capital at Cairo. B. He built a huge monument to his wife. C. He designed a wall to protect
Which states have produced the most U.S. presidents?
what is the simplest way to permanantly get rid of an unwanted file