Difference between append vs. Extend list methods in python



Difference between append vs. Extend list methods in python..

Answer / Amitesh Srivastava

The 'append' method adds an element to the end of a list, whereas the 'extend' method takes a list as an argument and appends all elements of that list to the current one.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What are the rules for local and global variables in Python?

1 Answers  


What is python and explain some of its benefits?

1 Answers  


How to get the ascii value in python?

1 Answers  


python is case sensitive ?

1 Answers  


What does do in c?

1 Answers  


How can I find methods or attributes of an object in Python?

1 Answers  


What is the difference between range & xrange? Explain?

1 Answers  


What is the difference between range and xrange in python?

1 Answers  


How will you verify different flags at once?

1 Answers  


Which data type you prefer to implement when deal with seuential data?

1 Answers  


What is the output of print str * 2 if str = 'hello world!'?

1 Answers  


What is end in python?

1 Answers  


Categories