Ask Question
20 June, 22:31

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

+1
Answers (1)
  1. 21 June, 01:18
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers