
Mariheida C. answered 06/17/19
SAT/ACT Math, CS, Bilingual Spanish
listone.extend(listtwo)
This will extend or add all the elements of listtwo to listone. That is, listone will be [1,2,3,4,5,6,7,8].
Mariheida C. answered 06/17/19
SAT/ACT Math, CS, Bilingual Spanish
listone.extend(listtwo)
This will extend or add all the elements of listtwo to listone. That is, listone will be [1,2,3,4,5,6,7,8].
Utkarsh S. answered 06/14/19
Math/Bio/Python Tutor. Well versed and practiced!
listone+listtwo will do it
So you can test it yourself:
a=[1,2,3,4,5,6,7,8]
b=[9,10]
print (a+b)
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.