Ask Question
7 April, 13:16

What is the difference between '' and "" string type in python?

+5
Answers (1)
  1. 7 April, 13:40
    0
    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))

    Here all are used to hold string or sequence of character.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the difference between '' and "" string type in python? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers