Computer Science · Python Lists
जब पास किया गया आर्गुमेंट एक अन्य लिस्ट हो, तो append() और extend() मेथड के बीच प्राथमिक परिचालन अंतर क्या है?
- 1append() केवल पूर्णांक अनुक्रमों के साथ काम करता है; extend() सभी डेटा प्रकारों के साथ काम करता है।
- 2append() एक नई संशोधित लिस्ट रिटर्न करता है; extend() मूल लिस्ट को इन-प्लेस संशोधित करता है।
- 3append() तत्वों को शुरुआत में जोड़ता है; extend() तत्वों को लिस्ट के अंत में जोड़ता है।
- 4append() आर्गुमेंट लिस्ट को एकल नेस्टेड तत्व के रूप में जोड़ता है; extend() उसे फ़्लैटन करके व्यक्तिगत तत्वों को जोड़ता है।✓
सही उत्तर देखें
append() आर्गुमेंट लिस्ट को एकल नेस्टेड तत्व के रूप में जोड़ता है; extend() उसे फ़्लैटन करके व्यक्तिगत तत्वों को जोड़ता है।
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 Lists?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Lists