Which of the following pair of symbols is used for multi-line strings in Python?

2026

Which of the following pair of symbols is used for multi-line strings in Python?

  1. A.

    Pair of '' (Single Quotes)

  2. B.

    Pair of # (Hash)

  3. C.

    Pair of """ (Triple Quotes)

  4. D.

    Pair of ! (Exclamation)

Attempted by 549 students.

Show answer & explanation

Correct answer: C

In Python, multi-line strings are defined using triple quotes (either ''' or """). This syntax allows the string to span multiple lines without requiring explicit newline escape characters.

Explore the full course: Rssb Senior Computer Instructor