1. Home
  2. Data Science
  3. Python
  4. Which of the following statements about tuples in Python…

Added 4 May 2024

Which of the following statements about tuples in Python is true?

  1. Tuples can be modified after creation.
  2. Tuples use square brackets [ ] for declaration.
  3. Tuples can only contain immutable elements. Correct answer
  4. Tuples can only contain integers.

Correct answer

C. Tuples can only contain immutable elements.

16 views

MCQSEXAM

Explanation

Tuples can contain any immutable data type, including integers, strings, and other tuples.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs