Ask Question
24 December, 09:53

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. 24 December, 12:01
    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 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