Post

Sergei Kotov
Sergei Kotov@kotov_dev·
@Python_Dv Answer: A. append() modifies the list in-place, so a becomes [10]. For beginners: append() doesn't return anything (returns None), it just adds to the existing list. That's why we don't do a = a.append(10). Quick tip: Use += [10] if you want a new list!
English
0
0
0
223
Shivam Pandey
Shivam Pandey@dev_chronicle·
@Python_Dv The answer is A, append just add element at end of list
English
0
0
0
174
suay_girl
suay_girl@suay_girl·
@Python_Dv Good Morning ☀️ TGIF—faith fuels your Friday.
English
0
0
0
108
Erick
Erick@erickeduardo4·
@Python_Dv Depois de a = [], temos uma lista vazia. Quando chamamos a.append(10), o número 10 é adicionado ao final dessa lista. Logo, ao imprimir obtemos: After append(10): [10]
Português
0
0
0
75
Paylaş