How do you extend in python?



How do you extend in python?..

Answer / Rubina Parveen

To extend a list in Python, you can use the `extend()` function. For example, `my_list.extend(other_list)` adds all elements from the `other_list` to the end of the `my_list`. You can also use the `+` operator to concatenate two lists together.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Explain try, raise, and finally?

1 Answers  


What is the incorrect declaration of a set?

1 Answers  


What good is recursion?

1 Answers  


What are all the operating system that python can run on?

1 Answers  


What is set in python 3?

1 Answers  


What is the difference between encapsulation and abstraction in python?

1 Answers  


Which is best gui for python?

1 Answers  


Why do we use __ init __ in python?

1 Answers  


Does python have private methods?

1 Answers  


Differentiate between deep and shallow copy in python?

1 Answers  


Explain me dogpile effect? How can you prevent this effect?

1 Answers  


What does float () do in python?

1 Answers  


Categories