Append Extend

0 votes
What is the difference between append() and extend()? When should they be used?
Jul 2, 2018 in Python by emerald
868 views

1 answer to this question.

0 votes
Hi.

This question has already been answered. Take a look https://www.edureka.co/community/5916/difference-between-append-vs-extend-list-methods-in-python?show=5916#q5916

Hope it helps :-)
answered Jul 2, 2018 by Nietzsche's daemon
• 4,260 points

Related Questions In Python

+1 vote
3 answers

Difference between append vs. extend list methods in Python

Python append() method adds an element to ...READ MORE

answered Aug 21, 2019 in Python by germyrinn
• 240 points
96,801 views
0 votes
1 answer

Difference between append vs. extend list methods in Python

append: Appends object at the end. x = ...READ MORE

answered Aug 8, 2018 in Python by bug_seeker
• 15,510 points
2,246 views
0 votes
1 answer

How do you append to a file?

with open("test.txt", "a") as myfile: myfile.write("appended text ...READ MORE

answered Jul 27, 2018 in Python by Priyaj
• 58,020 points
603 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,422 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,042 views
0 votes
1 answer

Enlarging a list using functions using append() and extend()

Let me illustrate this with an example ...READ MORE

answered Jun 1, 2018 in Python by Nietzsche's daemon
• 4,260 points
585 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP