Ask Question
19 March, 04:56

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

+2
Answers (1)
  1. 19 March, 07:36
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers