Computer Science · Python Lists
What is the primary operational difference between the append() and extend() methods when the passed argument is another list?
- 1append() works only with integer sequences; extend() works with all data types.
- 2append() returns a new modified list; extend() modifies the original list in-place.
- 3append() adds elements to the beginning; extend() adds elements to the end of the list.
- 4append() adds the argument list as a single nested element; extend() flattens and adds individual elements.✓
Correct answer
append() adds the argument list as a single nested element; extend() flattens and adds individual elements.
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