Computer Science · Python Tuples
एक डेवलपर छात्रों के नाम एक लिस्ट में और उनके रोल नंबर एक टुपल (tuple) में संग्रहीत करता है। बाद में, रोल नंबर टुपल के अंदर एक तत्व को संशोधित करने का प्रयास करने पर पायथन एक TypeError उत्पन्न करता है। इस व्यवहार का क्या कारण है?
Verified Solution4 OptionsUpdated: October 2026👁️1 View
Share:
- 1पायथन उन तत्वों को संशोधित नहीं कर सकता जो नेस्टेड अनुक्रमों से संबंधित हैं
- 2टुपल्स केवल तभी संशोधनों की अनुमति देते हैं जब उनमें स्ट्रिंग मान होते हैं
- 3लिस्ट अपरिवर्तनीय होती हैं और टुपल ऑपरेशन्स के साथ टकराव पैदा करती हैं
- 4टुपल्स अपरिवर्तनीय (immutable) अनुक्रम हैं जिनके तत्वों को निर्माण के बाद बदला नहीं जा सकता है✓
सही उत्तर देखें
टुपल्स अपरिवर्तनीय (immutable) अनुक्रम हैं जिनके तत्वों को निर्माण के बाद बदला नहीं जा सकता है
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!
Online Test Series
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Chapter Practice
Practice Python Tuples MCQs →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