Start learning →
Home › Olympiad (Class 11) › Computer Science › Python Strings Lists and Tuples › A programmer needs a fixed sequence of constants…

A programmer needs a fixed sequence of constants that no code can alter. He should use a:

ATable
BThread
CTicket
DTuple
Answer & Solution
Correct answer: D. Tuple
1. Lists can be changed after they are built. 2. Tuples cannot be changed once created. 3. So he should use a tuple. _Source: OpenStax Introduction to Python Programming, Chapter 3._
Practise this question with Quill — Olympiad (Class 11) →
Related questions