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

you are given an orange liquid. what methos would you use to observe and describe the physcial properties of the liquid without changing it?
List each of the five themes of geography and explain how geographers use these themes to organize information about the earth.
what two forms can you write for 0.632
The cover of a photo album has an area of 97.5 square inches. Find it's area in square centimeters. (1 cm = 0.39 in)
A 12 ounce bag of birdseed costs $3.12. A 16-ounce bag of birdseed costs $3.84. Which is the better deal. How much money per ounce would you save by buying that
Can some one please help me ???
how many bricks are left over if you place 213,854 bricks in groups of 10,000?
Solve for x 3(8x-5)=-4(7-6x)
A train travels 20 feet in 1/5 second. At  this same speed, how many feet will it travel in three seconds? Please show solutions on how to solve the problem ste
solve this equation -9h -6 +12h + 40=22.