Computer Science · Python Tuples
A developer stores student names in a list and their roll numbers in a tuple. Later, attempting to modify an element inside the roll number tuple causes Python to raise a TypeError. What is the reason for this behavior?
- 1Tuples are immutable sequences whose elements cannot be changed after creation✓
- 2Lists are immutable and conflict with tuple operations
- 3Tuples allow modifications only if they contain string values
- 4Python cannot modify elements that belong to nested sequences
Correct answer
Tuples are immutable sequences whose elements cannot be changed after creation
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Tuples?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Tuples