+ 1

I didn't understand append

Guys help me i didn't understand "append"

21st Nov 2018, 10:25 PM
ANTIDOTE
ANTIDOTE - avatar
3 odpowiedzi
0
Anytime. ;)
21st Nov 2018, 10:56 PM
HonFu
HonFu - avatar
+ 3
It is a method of the type list. Lists are for storing all kinds of stuff, and append adds one element at the end of a list. stuff = [4, 'd', 7] stuff.append(3) After the call of append, stuff will look like this: [4, 'd', 7, 3]
21st Nov 2018, 10:40 PM
HonFu
HonFu - avatar
+ 1
alright thank's bro ;)
21st Nov 2018, 10:51 PM
ANTIDOTE
ANTIDOTE - avatar