+ 1

Does that mean, In using append you can only add one item to the list?

Append

22nd Sep 2018, 9:54 PM
Charles Abakah
Charles Abakah - avatar
2 Antworten
+ 2
Using append allows you to add a single object to the end of the list. However, that single object may contain other objects. numbers = [ ] even = [0, 2, 4, 6, 8 ] odd = [1, 3, 5, 7, 9] numbers.append(even) numbers.append(odd)
22nd Sep 2018, 10:52 PM
Dlite
Dlite - avatar
0
thats buddy
23rd Sep 2018, 4:40 AM
Charles Abakah
Charles Abakah - avatar