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

solve and graph -4 + 2t - 14 - 18t > -6 - 100t
The Cuban Revolution resulted in A) increased trade with the United States. B) a Cold War ally with the United States. C) a government that soon adopted com
one fourth of the opposite of the difference of five and a number is less than 20
The sum of two consecutive even integers is -134 . What are the two numbers?
Which ordered pair is in the solution set of 3x-y=10 A. (5,-5) B. (4,2) C. (4,-2) D. (_5,5) Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Plz!!!!
How is the entire noun clause used in the sentence? That these little creatures survive in these small pools of water is amazing. A. Subject B. Object of Prepos
which five major colonial cities were occupied by the British
Help solve this picture
What mark did tom walker find when he reached home
A 90-kg tight end moving at 9.0 m/s encounters at 400 N•s impulse. Determine the velocity change of the tight end.