nerdexam
Python_Institute

PCEP-30-02 · Question #381

What is true about tuples? (Select two answers.)

The correct answer is A. Tuples are immutable, which means that their contents cannot be changed during their lifetime. D. Tuples can be indexed and sliced like lists. See the full explanation below for the reasoning.

Question

What is true about tuples? (Select two answers.)

Options

  • ATuples are immutable, which means that their contents cannot be changed during their lifetime.
  • BThe len() function cannot be applied to tuples.
  • CAn empty tuple is written as { }.
  • DTuples can be indexed and sliced like lists.

How the community answered

(42 responses)
  • A
    74% (31)
  • B
    7% (3)
  • C
    19% (8)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice