Ask Question

What must you use to create a multi-line string?

A single pair of single quotation marksA single pair of double quotation marksA single pair of three consecutive double quotation marksEmbedded newline characters

+4
Answers (1)
  1. 10 February, 09:46
    0
    A single pair of three consecutive double quotation marks.

    Explanation:

    In Python, a multi-line string can be created by enclosing it in three double quotation marks. For example:

    string = """This is a Python multi-line string

    This is used to print string in multiple lines

    This uses three consecutive quotation marks"""

    print (string)

    Output:

    This is a Python multi-line string

    This is used to print string in multiple lines

    This uses three consecutive quotation marks

    In addition to using three double quotation marks, / n and brackets () are also used to create multi-line string in Python.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What must you use to create a multi-line string? A single pair of single quotation marksA single pair of double quotation marksA single ...” 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