0

Can we use 'append' to add more than 1 elements to a list at once?

4th Oct 2018, 1:32 PM
partha
partha - avatar
4 Answers
+ 2
list.extend(otherlist)
4th Oct 2018, 1:42 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar
+ 2
list.extend((el, em, en, ts))
4th Oct 2018, 2:07 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar
0
yay it worked thanksKevin Dietrichstein so we can add another list to a list but not multiple elements at once
4th Oct 2018, 1:58 PM
partha
partha - avatar
4th Oct 2018, 2:23 PM
partha
partha - avatar