list function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

list function

the last question in list function is confusing.

13th Jul 2016, 4:48 PM
Śàńťíáğò J Váľđéż Jr.
Śàńťíáğò J Váľđéż Jr. - avatar
3 Answers
0
can you show me the question
13th Jul 2016, 6:43 PM
sundar
sundar - avatar
0
first you need to append the list to add 'z' so drag and drop 'append' then you must know the length of the list len() function is used to know length so u need to pass list variable (i.e) (list) to it The complete code: list.append('z') print(len(list)) that's it! let me know if u are clear
13th Jul 2016, 7:00 PM
sundar
sundar - avatar
0
ohh thanks mein . now I understand.
13th Jul 2016, 8:35 PM
Śàńťíáğò J Váľđéż Jr.
Śàńťíáğò J Váľđéż Jr. - avatar