there are methods append and extend in list in Python. what is the dif
Guys, there are methods append and extend in list in Python. what is the difference between them and when should i use each?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Dec 27, 2020, 4:09 PM
Mageshwaran RPosted Dec 28, 2020, 4:44 AM
Harsh ShahPosted Dec 28, 2020, 3:47 AM
Aman GuptaPosted Dec 27, 2020, 4:14 PM
Output:
['C#', 'Corner', 'Community']Output:
['C#', 'Corner', 1, 0, 2, 4]Sachin SinghPosted Dec 27, 2020, 3:48 PM